Benjamin-Lee / DNAvisualization.org

🧬📈 Turn DNA sequences into interactive visualizations
https://dnavisualization.org
Apache License 2.0
12 stars 4 forks source link

Bump @assemblyscript/loader from 0.17.12 to 0.20.2 #318

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps @assemblyscript/loader from 0.17.12 to 0.20.2.

Release notes

Sourced from @​assemblyscript/loader's releases.

v0.20.2

Bug fixes

  • Fix invalid assumption when compiling binary overloads (#2237) (89035f576a5f33ab6026abe8e1d9f14f84797264)
  • Fix crash on reference typed constant (#2238) (6e7c8f41826b847e0bcac73066ca5b4244a14463)

v0.20.1

Bug fixes

  • Defuse assert when flattening after diagnosed error (#2233) (1c806f57bda153e8d6e149118f8d309ea3292b62)
  • Mitigate crash on arrays of void or v128 (#2232) (b571122c396f3bb570d97aa3acd546e2e3b04792)
  • Emit a diagnostic when a --use element cannot be found (#2231) (8047b024488b74deeea5dded7efdf4b24108474d)

v0.20.0

ECMAScript modules

Fixes #1306. Migrating our dependencies to ESM made it possible to migrate the compiler and frontend as well, alongside internal utility and scripts. This is a breaking change for consumers of the compiler API (i.e. transforms), but not for command line usage. Viable strategies to account for the changes are:

  1. Migrate any code utilizing compiler APIs to ESM as well:

    import assemblyscript from "assemblyscript";
    ...
    
  2. Utilize a dynamic import while consuming code remains in its current module format:

    const assemblyscript = (await import("assemblyscript")).default;
    ...
    // or
    import("assemblyscript").then(({ default: assemblyscript }) => { ... });
    

Due to this change, older versions of Node.js may need to be upgraded (LTS v16 or stable v17 are recommended).

Running the compiler on the Web with ESM

Prior, we provided a browser SDK that made use of the AMD module format to load the components necessary to run the compiler on the Web. With the switch to ESM, it is not necessary anymore to provide a separate SDK, but native browser functionality can now be used to utilize the compiler in browsers. To ease the transition, the build system outputs an example dist/web.html template with all the right versions in <script ...> tags. Alongside, it also sets up es-module-shims for import maps support as is currently necessary to support browsers other than those based on Chromium. General outline is:

<script async src="url/to/es-module-shims"></script>
<script type="importmap">
{
  "imports": {
    "binaryen": "url/to/binaryen",
    "long": "url/to/long",
    "assemblyscript": "url/to/assemblyscript"
  }
}
</tr></table> 

... (truncated)

Commits
  • a7c87e6 BREAKING CHANGE: ESM, JS bindings, triple equals and general cleanup (#2157)
  • 81d5898 fix: loader: Consider .byteLength of slices when obtaining typed arrays (#2162)
  • 587c414 Cherry pick some loader string test cases (#2050)
  • 8eaa44a feat: add ability to create arrays with capacity for __newArray (#2024)
  • b0549e0 feat: Add __getFunction method for loader (#2037)
  • 5df7318 feat: add __newArrayBuffer() to the loader (#1965)
  • 3564848 Add string conversion error modes (#1902)
  • 7e20ad2 Fix: Use F_NOEXPORTRUNTIME if __rtti_base is missing (#1808)
  • 92bc7dd fix: Fix premature collect of backing buffers in loader's __newArray
  • b857944 Rewrite runtime, switch to tracing GC and bootstrap (#1559)
  • See full diff in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #319.