Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: emberjs/ember-cli-babel
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.20.4
Choose a base ref
...
head repository: emberjs/ember-cli-babel
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.20.5
Choose a head ref
  • 5 commits
  • 5 files changed
  • 1 contributor

Commits on May 29, 2020

  1. Remove Travis & AppVeyor

    rwjblue committed May 29, 2020
    Copy the full SHA
    afae485 View commit details

Commits on May 30, 2020

  1. Merge pull request #344 from babel/remove-travis-appveyor

    Remove Travis & AppVeyor
    rwjblue authored May 30, 2020
    Copy the full SHA
    f7ac049 View commit details

Commits on Jun 2, 2020

  1. Ensure Ember modules API related globals do not share AST Nodes

    The original fix in
    ember-cli/babel-plugin-ember-modules-api-polyfill#109 attempted to cache
    the generated member expressions, so that we didn't do duplicated work
    for each reference to a given global. Unfortunately, this optimization
    failed to take into consideration that most babel plugins work by
    directly mutating the node in question. In practice what that meant was
    that once _any_ usage of a given global was needed to be transformed
    (e.g. say you had `computed(...args, function(){})` and are transpiling
    for IE11), then all usages of that global would be mutated.
    
    A more concrete example.
    
    ```js
    // input
    import { computed } from '@ember/object';
    
    function specialComputed(dependentKeys) {
      return computed(...dependentKeys, function() {});
    }
    
    function otherLessSpecialComputed() {
      return computed('stuff', 'hard', 'coded', function() {});
    }
    ```
    
    In this example, the first method (`specialComputed`) needs to be
    transpiled to something akin to (most of the changes here are from
    `@babel/plugin-transform-spread`):
    
    ```js
    function specialComputed(dependentKeys) {
      return Ember.computed.apply(Ember, dependentKeys.concat([function() {}]));
    }
    ```
    
    Unfortunately, since the generated `MemberExpression` for
    `Ember.computed` is shared, this forced the other `computed` usage to be
    transpiled to:
    
    ```js
    function otherLessSpecialComputed() {
      return Ember.computed.apply('stuff', 'hard', 'coded', function() {});
    }
    ```
    
    Which is clearly, **totally** invalid. 🤦
    rwjblue committed Jun 2, 2020
    Copy the full SHA
    e7f605b View commit details
  2. Copy the full SHA
    f1a6cd6 View commit details
  3. Release 7.20.5

    rwjblue committed Jun 2, 2020
    Copy the full SHA
    84a8881 View commit details
Showing with 36 additions and 281 deletions.
  1. +0 −67 .travis.yml
  2. +11 −0 CHANGELOG.md
  3. +0 −37 appveyor.yml
  4. +2 −2 package.json
  5. +23 −175 yarn.lock
67 changes: 0 additions & 67 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## v7.20.5 (2020-06-02)

#### :bug: Bug Fix
* [#348](https://github.com/babel/ember-cli-babel/pull/348) Ensure Ember modules API related globals do not share AST Nodes ([@rwjblue](https://github.com/rwjblue))

#### :house: Internal
* [#344](https://github.com/babel/ember-cli-babel/pull/344) Remove Travis & AppVeyor ([@rwjblue](https://github.com/rwjblue))

#### Committers: 1
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))

## v7.20.4 (2020-05-30)

#### :bug: Bug Fix
37 changes: 0 additions & 37 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-babel",
"version": "7.20.4",
"version": "7.20.5",
"description": "Ember CLI addon for Babel",
"keywords": [
"babel",
@@ -53,7 +53,7 @@
"amd-name-resolver": "^1.2.1",
"babel-plugin-debug-macros": "^0.3.0",
"babel-plugin-ember-data-packages-polyfill": "^0.1.2",
"babel-plugin-ember-modules-api-polyfill": "^2.13.3",
"babel-plugin-ember-modules-api-polyfill": "^2.13.4",
"babel-plugin-module-resolver": "^3.1.1",
"broccoli-babel-transpiler": "^7.4.0",
"broccoli-debug": "^0.6.4",
Loading