Repository navigation
feat: introduce standalone JavaScript SDK - #41
Open
m4sh-wacker wants to merge 6 commits into
Open
m4sh-wacker wants to merge 6 commits into
m4sh-wacker wants to merge 6 commits into
Conversation
Port the public v1 API and runtime changes from m4sh-wacker/DecodeBox-SDK at 74b2b392. Build classic, module and declaration artifacts from the registry and verify their release checksums.
Sign classic output with a UTF-8 BOM before aliasing and hashing. Preserve resolver paths so clean and linked installs emit identical release bytes. Exercise an undeclared consumer charset and report script errors.
Pin a declaration generator compatible with both runtimes and keep internal types private. Import the trusted project version directly when constructing distribution paths.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Applications can run DecodeBox operations, recipes and multilayer analysis locally in modern browsers and Java-enabled GraalJS. The SDK wraps the workbench’s operation registry and processing engine. The public API remains at v1.0.0, with an independently versioned engine and generated TypeScript declarations.
src/appand group the existing engine regression tests undersrc/engine/tests. Runtime adapters live undersrc/engine/runtime, with the public contract undersrc/sdk./api,/api.js, stable SDK aliases and immutable/sdk/v1/{engineVersion}/artifacts. Hash the published bytes, retain older releases and reject a version collision before publishing. Release Please retains ownership of the project version.Related issue
The integration addresses the external SDK request.
Fixes #38
How it was tested
9932e7ed296e8245fe06f192de7c96cf657379cfcef59f18aee2ad7518c7f1f6. Independent installs reproduced the release artifacts. Missing, empty, changed and mismatched artifacts fail validation. A deployment fixture confirmed that older versions survive and a collision fails./api. Strict MIME consumers can use/api.js. Local validation does not establish the headers of a future official deployment.Checklist
anyin application code or dynamic code evaluation in the SDK.@exodus/bytesfor encoding,whatwg-urlfor URL handling and@noble/curvesfor EC key conversion in GraalJS. The versions are exact and covered by the lockfile.The UI layout, translations, keyboard interactions and operation definitions retain their existing interfaces. No operation was added. The full compatibility harnesses and generated reports were kept outside the production repository.