diff --git a/.travis.yml b/.travis.yml index d3106af2d..e21e09b5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,8 @@ before_script: script: - npm run build - ./node_modules/.bin/karma start --single-run --browsers Firefox --reporters mocha + # Make sure the build that ships to npm builds without errors + - npm run build_npm # Can't run until https://github.com/angular/protractor/issues/2784 is resolved #- ./node_modules/.bin/protractor protractor.conf.js --browser firefox diff --git a/CHANGELOG.md b/CHANGELOG.md index 12cecfc42..7cdd1696a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,27 @@ * **utils:** Add $exists method to AFUnwrappedSnapshot ([#471](https://github.com/angular/angularfire2/issues/471)) ([f67aab1](https://github.com/angular/angularfire2/commit/f67aab1)) * upgrade to RC7 ([#505](https://github.com/angular/angularfire2/issues/505)) ([2410b2d](https://github.com/angular/angularfire2/commit/2410b2d)) +### BREAKING CHANGES + +The way this project is packaged has changed to be consistent with other Angular packages. +Previously: + + * The project just consisted of CommonJS modules, with `angularfire2.js` as the main entry point. + * The project provided an `es6` directory which contained es2015 modules and es2015 JS + * Package.json included `main` and `jsnext:main` fields, pointing to `angularfire2.js` and `es6/angularfire2.js`, respectively. + +Now: + + * The project ships ES2015 modules with ES5 JS at the root, as well as an ES5 UMD bundle at `bundles/angulafire2.umd.js` + * The `main` field of `package.json` points to `bundles/angularfire2.umd.js`. + * Instead of `jsnext:main`, we're using the `module` field of package.json to point to `index.js`. + * Instead of `angularfire2.js` being the main entry point, an `index.js` has been added (though angulafire2.js hasn't changed significantly). + +If you're using Rollup or Webpack, they should _just work_ with this new setup (please open issues if not). If using SystemJS, you should be able to +add `format: 'esm'` inside of the packages configuration, and it should load and parse the es2015 modules correctly. +The addition of the umd bundle will also make it possible to use AngularFire2 in a `