Skip to content

v0.12.0

Choose a tag to compare

@aomarks aomarks released this 18 Aug 00:35
· 200 commits to main since this release
8940339

Fixed

  • Fixes duplicate module errors by canonicalizing all import specifiers. Import
    specifiers are now canonicalized by version number and default module. This
    applies both to local project files, and throughout the entire external
    dependency tree.

  • Import maps now apply to modules in external dependencies, not just to local
    project files.

  • The TypeScript compiler can now deal with multiple versions of the same
    dependency. Previously, if the import graph included two versions of the same
    package, only one arbitrary version of the types would be compiled. This
    caused various errors and missing type issues.

Changed

  • If the project contains a package.json file, then its
    dependencies
    field will be used to determine the version of dependencies (just like how NPM
    works locally).

  • Dependencies are now served from the special
    "<service-worker-scope>/node_modules/..." path, instead of directly from
    https://unpkg.com/...?module URLs. Behind-the-scenes, dependencies are still
    fetched from unpkg, but they are now themselves transformed to ensure correct
    specifier canonicalization.

  • BREAKING Due to large changes to the way dependencies are handled, there
    is some risk of breakage due to subtle behavior changes that existing
    configurations may be relying on. Therefore, this release is versioned with a
    major increment.