Skip to content

Releases: embroider-build/embroider

v3.0.1-test-setup: Merge pull request #1437 from embroider-build/release-infra-update

18 May 17:34
@ef4 ef4
8f4cd85
Compare
Choose a tag to compare

Release (2023-05-18)

@embroider/test-setup 3.0.1 (patch)

🐛 Bug Fix

  • test-setup
    • #1436 prevent double ^ when using embroider test-setup (@mansona)

🏠 Internal

Committers: 2

Release 2023-05-17

17 May 21:18
@ef4 ef4
c6b5612
Compare
Choose a tag to compare

Release (2023-05-17)

@embroider/addon-dev 3.1.0 (minor)
@embroider/addon-shim 1.8.5 (patch)
@embroider/babel-loader-8 3.0.0 (major)
@embroider/compat 3.0.0 (major)
@embroider/core 3.0.0 (major)
@embroider/hbs-loader 3.0.0 (major)
@embroider/macros 1.11.0 (minor)
@embroider/router 2.1.0 (minor)
@embroider/shared-internals 2.1.0 (minor)
@embroider/test-setup 3.0.0 (major)
@embroider/util 1.11.0 (minor)
@embroider/webpack 3.0.0 (major)

💥 Breaking Change

🚀 Enhancement

  • addon-dev, router
    • #1419 Test against ember preview types (@ef4)
  • macros
  • shared-internals
  • core
  • compat, core, webpack
  • compat, shared-internals
    • #1372 restore component invokes rules support (@ef4)
  • util
  • compat
    • #1369 Add semverRange <=4.11.0 for ember-data (@mkszepp)
    • #1362 clarify which package rules apply inside vs outside a component (@ef4)
    • #1352 reinstate logic around parsing of invokes packageRules (@void-mAlex)
    • #1343 Fix @babel/core version check to support ember-cli-babel v8 (@bertdeblock)
  • addon-dev
    • #1368 Add support for keeping public assets and ember-addon.public-assets meta in sync (@phndiaye)
  • core, webpack
  • compat, core, shared-internals, webpack
    • #1339 Layer template resolver on top of module resolver (@ef4)

🐛 Bug Fix

📝 Documentation

🏠 Internal

Committers: 12

Read more

Release 2022-11-28.0

28 Nov 18:12
@ef4 ef4
Compare
Choose a tag to compare

@embroider/compat, @embroider/core, @embroider/test-setup, @embroider/webpack 2.0.0 -> 2.0.1

  • BUGFIX: 2.0.0 broke template-only components in addons with custom AST transforms 1294, 1295

Release 2022-11-23.0

23 Nov 18:55
@ef4 ef4
Compare
Choose a tag to compare

Release 2022-11-23.0

@embroider/addon-dev 2.0.0 -> 3.0.0

  • BREAKING: @embroider/addon-template/template-transform-plugin is removed
    because babel-plugin-ember-template-compilation >= 2.0.0 now directly supports
    source-to-source transformation.

    This plugin was used to run any custom AST transformations on your templates before publishing. To replace it:

    1. Add babel-plugin-ember-template-compilation@^2.0.0 as a devDependency.

    2. Make sure you also have a devDependency on ember-source, so we have a template compiler.

    3. Update the babel config like:

      plugins: [
      -   [
      -     '@embroider/addon-dev/template-transform-plugin',
      -     {
      -       astTransforms: [
      -         ...yourPluginsHere
      -       ]
      -     }
      -   ],
      +   [
      +     'babel-plugin-ember-template-compilation',
      +     {
      +       compilerPath: 'ember-source/dist/ember-template-compiler',
      +       targetFormat: 'hbs',
      +       transforms: [
      +         ...yourPluginsHere
      +        ]
      +     }
      +   ]
      ]

    See https://github.com/emberjs/babel-plugin-ember-template-compilation for the complete docs on these options.

@embroider/addon-shim: 1.8.3 -> 1.8.4

  • BUGFIX: Add missing dependency 1282

@embroider/babel-loader-8 1.9.0 -> 2.0.0

  • ENHANCEMENT: remove forced optional-chaining and nullish-coalescing-operator babel plugins 1270
  • BREAKING: peerDep on @embroider/core 2.0

@embroider/compat 1.9.0 -> 2.0.0

  • BREAKING: Drop support for Ember < 3.28 1246. See details in the @embroider/core section of these release notes.
  • BUGFIX: don't generate .js compnent stubs for .ts components 1273
  • BUGFIX: several windows-specific issues were caught and fixed when we ported our remaining test suite to run on both unix and windows.

@embroider/core 1.9.0 -> 2.0.0

  • DOCS: document how to work with test scenarios 1283

  • BUGFIX: Defend against infinite loop on broken babel config 1277

  • BUGFIX: allow v2 addons to use app tree fallback resolution 1278

  • BREAKING: Drop support for Ember < 3.28 1246

    This allows us to rely on:

    • first-class components, helpers, and modifiers

    • template lexical scope

    • the lack of the old modules-api-polyfill

      which greatly simplifies the build.

  • ENHANCEMENT: Simplified template compilation pipeline 1242, 1276

    Uses babel-plugin-ember-template-compilation 2.0, which offers new capabilities to AST transform authors that better unlock the power of strict mode templates.

  • ENHANCEMENT: For most invocations of components, helpers, and modifiers when staticComponents, staticHelpers, and staticModifiers settings are enabled, we now entirely bypass the AMD loader using template lexical scope. This results in less work at runtime and slightly smaller code.

  • BREAKING: The above feature won't have any breaking effects in the vast majority of apps that are doing things correctly. But I'm calling this out as potentially breaking because you may be accidentally relying on the loose old behaviors:

    1. Using a component in one place would cause it to become globally available to the AMD loader after that point. This would let string-based component resolution work when it actually shouldn't have (if you are resolving strings into components at runtime, you can't use staticComponents mode).

    2. If you have multiple copies of an addon, which copy would get invokved from a given template was hard to predict before, now each one will definitely see it's own dependency.

  • INTERNALS: re-enable engines tests 1281

@embroider/hbs-loader 1.9.0 -> 2.0.0

  • ENHANCEMENT: expose backward-compatible moduleName support
  • BREAKING: peerDep on @embroider/core 2.0

@embroider/macros 1.9.0 -> 1.10.0

  • BUGFIX: template macros could have pre-moved appRoot in their packageCache

  • ENHANCEMENT: expose simplified transforms API for use with babel-plugin-ember-template-compilation

    Previously, we used MacrosConfig.astTransforms() which gave you transforms in
    the reverse order they were expected to run, for compatibility with the wacky
    ordering in class ember-cli-htmlbars. Now we also offer MacrosConfig.transforms() which provides them in a format compatible directly with babel-plugin-ember-template-compilation 2.0, which uses the more natural order and which supports plugins-as-strings-to-be-loaded in addition to just plain functions.

@embroider/router: 1.9.0 -> 2.0.0

  • BREAKING: peerDep on @embroider/core 2.0
  • BREAKING: converted to a v2 addon, so consuming apps must have ember-auto-import >= 2.0.0.

@embroider/shared-internals: 1.8.3 -> 2.0.0

  • BUGFIX: several windows-specific issues were caught and fixed when we ported our remaining test suite to run on both unix and windows.

  • BREAKING: The second argument to hbsToJS() has changed formats to accomodate new additional options.

    import { hbsToJS } from '@embroider/shared-internals';
    
    -hbsToJS('<SomeTemplate />', 'my-component.hbs');
    +hbsToJS('<SomeTemplate />', { moduleName: 'my-component.hbs' });

@embroider/test-setup: 1.8.3 -> 2.0.0

  • BREAKING test under the new 2.0 releases of @embroider/core et al.

@embroider/webpack 1.9.0 -> 2.0.0

  • BREAKING: Drop support for Ember < 3.28 1246. See details in the @embroider/core section of these release notes.

Release 2022-10-06.0

06 Oct 20:03
@ef4 ef4
Compare
Choose a tag to compare

@embroider/core 1.8.3 -> 1.9.0 minor

@embroider/compat 1.8.3 -> 1.9.0 minor

@embroider/addon-dev 1.8.3 -> 2.0.0 major

  • Extensions in addon-dev's rollup plugin are now all normalized to .js, #1223 (@NullVoxPopuli)

    Previously, when addonEntrypoints would include .{js,ts}, these entries should no only say .js.
    All files are in terms of "the outputs", which are JavaScript.

    Also in #1223, this PR fixes an issue where components authored in typescript could not be used

  • Default 'hoiseTransitiveImports' to 'false', #1233 (@NullVoxPopuli)

    Module load optimzations are an app concern, rather than an addon/library concern.
    This also resolves the issue that is described in babel-plugin-ember-template-compilation#7

  • Default sourcemap: true for the rollup output defaults, #1234 (@NullVoxPopuli)

    These are very hi-fi sourcemaps -- for example, in TypeScript projects, you see TypeScript in the dev tools.
    Because rollup/webpack/etc output can be really hard for humans to read, enabling sourcemaps as a default should hopefully help folks debug their addons more easily.

  • Run the clean plugin as late as possible, #1229 (@simonihmig)

    Previously the cleanup would happen at the earliest point in time, at buildStart,
    making the time window large enough for Ember CLI to see the transient build output in an inconsistent state.
    Now it happens at the latest possible time, at generateBundle right before files are written,
    making the time window small enough to not cause any problems in practice.

@embroider/macros 1.8.3 -> 1.9.0 minor

internals

  • upgrading some github actions, #1250 (@ef4)
  • Port file assertions to qunit, #1240 (@ef4)
  • Upgrade yarn and use volta.extends for all the things (@ef4)

Release 1.8.3

04 Jul 20:21
@ef4 ef4
Compare
Choose a tag to compare

🐛 Bug Fix

  • compat
    • #1231 Followup to "Detect addons with customized treeForMethod names" (@ef4)

🏠 Internal

Committers: 1

  • Edward Faulkner (@ef4)

Release 1.8.2

04 Jul 19:32
@ef4 ef4
Compare
Choose a tag to compare

🐛 Bug Fix

  • compat, shared-internals
    • #1230 Detect addons with customized treeForMethod names (@ef4)

Committers: 1

  • Edward Faulkner (@ef4)

Release 1.8.1

01 Jul 22:39
@ef4 ef4
Compare
Choose a tag to compare

🐛 Bug Fix

  • addon-dev
    • #1227 add-dev: HBS files were not watched for rebuilds (@ef4)
  • compat
    • #1224 Don't apply the ember-get-config compat adapter when >= v2.1.0 (@bertdeblock)
  • macros

📝 Documentation

  • #1225 docs: Add lazy loaded engines EmbroiderRouter details to README (@richgt)

Committers: 4

Release 1.8.0

09 Jun 19:13
@ef4 ef4
Compare
Choose a tag to compare

🚀 Enhancement

  • addon-dev, core, shared-internals
    • #1199 Add babel plugin for preprocessing templates with ast transforms (@wondersloth)

🐛 Bug Fix

Committers: 4

Release 1.7.1

24 May 04:35
@ef4 ef4
Compare
Choose a tag to compare

🐛 Bug Fix

  • core
    • #1210 fastboot should not try to load through publicAssetURL (@ef4)
  • webpack

Committers: 1

  • Edward Faulkner (@ef4)