237 Commits

Author SHA1 Message Date
Vikram Subramanian
60aa943e2d fix(platform-server): avoid dependency cycle when using http interceptor ()
Fixes .

When a HTTP Interceptor injects HttpClient it causes a DI cycle. This fix is to use Injector to lazily inject HTTP_INTERCEPTORS while setting up the HttpHandler on the server so as to break the cycle.

PR Close 
2018-06-01 08:33:45 -07:00
Alex Eagle
017d67cdf8 test: switch to ts_web_test_suite ()
Unit tests now run on Firefox too

PR Close 
2018-05-15 11:40:56 -07:00
swseverance
fe3679a356 style: remove empty comments ()
PR Close 
2018-05-10 15:48:13 -07:00
Igor Minar
6601d0f7ba build: update to rxjs@6.0.0 ()
PR Close 
2018-05-03 10:53:39 -07:00
Olivier Combe
06c0d9666f build(common): mark locales files as side-effect-full ()
Fixes https://github.com/angular/angular-cli/issues/10322
PR Close 
2018-04-24 11:14:52 -07:00
Victor Berchet
4662878a1f refactor(compiler): refactor template binding parsing ()
A long time ago Angular used to support both those attribute notations:
- `*attr='binding'`
- `template=`attr: binding`

Because the last notation has been dropped we can refactor the binding parsing.
Source maps will benefit from that as no `attr:` prefix is added artificialy any
more.

PR Close 
2018-04-20 16:07:55 -07:00
Olivier Combe
d1177c75f8 refactor: update CLDR data for closure locale & use a const for undefined ()
PR Close 
2018-04-13 16:30:23 -07:00
Igor Minar
aa27155618 build(common): mark locales files as side-effect-full ()
These files are in the UMD format for greater portablity, and as such
can't be marked as side-effect-free by webpack/build-optimizer/uglify.

PR Close 
2018-04-13 13:09:13 -07:00
Olivier Combe
ce40e85cbb refactor(common): update CLDR data to v33.0.0 ()
PR Close 
2018-04-11 15:34:46 -07:00
Olivier Combe
5706810af2 fix(common): replace i18n locale undefined values by a const ()
Fixes 
PR Close 
2018-04-11 15:34:46 -07:00
Pete Bacon Darwin
4b96a58c5a docs: remove all deprecated @stable jsdoc tags ()
These are no longer needed as stable docs are computed as those that
do not have `@experimental` or `@deprecated` tags.

PR Close 
2018-04-10 21:49:32 -07:00
Alex Eagle
5a298b1c5e fix(common): workaround UMD/webpack limitation ()
Fixes 

PR Close 
2018-04-09 15:16:12 -07:00
Pete Bacon Darwin
381da1af45 build(aio): move "optional" and "default" to end of param description ()
PR Close 
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
cdd05bd2ca docs(common): move Pipe param docs to transform function ()
PR Close 
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
079d8e57d5 docs(common): migrate @whatItDoes tags to the description ()
We get the overview for the doc by splitting off the first
paragraph.

PR Close 
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
46ba7f69dd docs(common): migrate @howToUse tags ()
In pipes the content of these tags is now generated automatically.
In directives these tags have been converted to `@usageNotes` tags,
but in the future me might find a way to generate that usage too.

PR Close 
2018-04-05 09:25:15 -07:00
Pawel Kozlowski
aaefd51a88 refactor(common): simplify NgClass code, add comments ()
PR Close 
2018-04-04 09:41:17 -07:00
Pawel Kozlowski
4a426696c9 fix(common): properly take className changes into account ()
Fixes 

PR Close 
2018-04-04 09:41:16 -07:00
Alex Eagle
46eadb5cfb build: fix common locales in npm package ()
PR Close 
2018-04-04 08:23:07 -07:00
Alan Agius
7ca772060b fix(common): locales are not being shipped ()
Closes: , 

PR Close 
2018-04-03 10:47:51 -07:00
Igor Minar
92724b396b build: update to rxjs@6.0.0-rc.0 ()
PR Close 
2018-04-03 10:00:24 -07:00
Alex Eagle
15278784fc release(bazel): change publish-next script to publish bazel artifacts ()
PR Close 
2018-03-30 14:03:05 -07:00
Igor Minar
6f7d14064c build: update to rxjs@6.0.0-beta.4 ()
PR Close 
2018-03-30 13:07:03 -07:00
Veres Lajos
de90314304 style: typos fixed - https://github.com/vlajos/misspell-fixer ()
PR Close 
2018-03-27 14:51:53 -04:00
Matias Niemelä
bf6a416bce revert: docs(common): add HttpParamsOptions to the public API ()
This reverts commit 7b7757dd3d38a95ed20a6dd2d6db44f269eec087.
2018-03-26 16:29:46 -04:00
George Kalpakas
7b7757dd3d docs(common): add HttpParamsOptions to the public API ()
Fixes 

PR Close 
2018-03-23 16:31:10 -04:00
sergeome
7966744a44 fix(common): titlecase pipe ()
PR Close 
2018-03-23 13:42:51 -04:00
Igor Minar
8768665587 fix: correct peerDependencies declaration on rxjs 2018-03-20 22:48:41 -07:00
Igor Minar
7d095b96cd fix: correct several esm2015 entry-points in package.jsons ()
PR Close 
2018-03-20 13:30:08 -07:00
Alex Eagle
689f351092 build: expose flatModuleOutFile option on ng_module ()
This lets projects like Material change ng_package "bundle index" files to non-conflicting paths

Currently packages like @angular/core ship with the generated metadata
in a path like 'core.js' which overwrites one of the inputs.

Angular material puts the generated file in a path like 'index.js'

Either way these files generated by ng_module rules have the potential
to collide with inputs given by the user, which results in an error.

Instead, give users the freedom to choose a different non-conflicting name.

Also this refactors the ng_package rule, removing the redundant
secondary_entry_points attribute.

Instead, we assume that any ng_module in the deps with a module_name
attribute is a secondary entry point.

PR Close 
2018-03-20 13:28:57 -07:00
Igor Minar
b43f8bc7d3 feat(core): upgrade rxjs to 6.0.0-alpha.4 ()
PR Close 
2018-03-19 21:51:51 -07:00
Igor Minar
ce63dc6f95 feat: update the package output of build.sh to APF v6 ()
PR Close 
2018-03-18 09:33:51 -07:00
Alex Eagle
f9247e4b2e build: enable importHelpers in tsconfig ()
This is the primary tsconfig file used for Bazel builds.
Previously, we enabled this option only for releases.

PR Close 
2018-03-15 21:16:03 -07:00
Igor Minar
44de10e2db feat: mark angular packages as side-effect free ()
This flag is picked up by webpack v4 and used for more agressive optimizations.

Our code is already side-effect free, because that's what we needed for build-optimizer to work.

PR Close 
2018-03-15 14:52:40 -07:00
Alex Eagle
88b3198c80 feat(bazel): change ng_package rule to APF v6 ()
Angular Package Format v6 stops bundling files in the esm5 and esm2015
directories, now that Webpack 4 can tree-shake per-file.

Adds some missing files like package.json to make packages closer to
what we publish today.

Refactor ng_package to be a type of npm_package and re-use the packaging
action from that rule.

PR Close 
2018-03-15 11:38:31 -07:00
Alex Eagle
1e6cc42a01 test: migrate remaining public-api tests to Bazel ()
We now create npm packages to cover all the public api assertions in tools/public_api_guard.
We no longer depend on ts-api-guardian from npm - it is now stale since the repository was archived.
There is no longer a gulp task to enforce or accept the public API, this is in CircleCI as part of running all bazel test targets.

PR Close 
2018-03-09 09:11:40 -08:00
Igor Minar
489fec1299 feat: update tslib to 1.9.0 ()
BREAKING CHANGE: after this change, npm and yarn will issue incompatible peerDependencies warning

We don't expect this to actually break an application, but the application/library package.json
will need to be updated to provide tslib 1.9.0 or higher.

PR Close 
2018-03-08 16:42:34 -08:00
Olivier Combe
78167915ee build(common): export locale data as commonjs instead of es2015 ()
PR Close 
2018-03-07 14:33:45 -08:00
Hans Larsen
288851c41e release: add ng update package group metadata to angular ()
"ng update" supports having multiple packages as part of a group which should be updated together, meaning that e.g. calling "ng update @angular/core" would be equivalent to updating all packages of the group (that are part of the package.json already).

In order to support the grouping feature, the package.json of the version the user is updating to needs to include an "ng-update" key that points to this metadata.

The entire specification for the update workflow can be found here: 2e8b12a4ef/docs/specifications/update.md

PR Close 
2018-02-28 14:57:53 -08:00
Olivier Combe
4180912538 feat(common): export functions to format numbers, percents, currencies & dates ()
The utility functions `formatNumber`, `formatPercent`, `formatCurrency`, and `formatDate` used by the number, percent, currency and date pipes are now available for developers who want to use them outside of templates.

Fixes 

PR Close 
2018-02-23 15:27:10 -08:00
Alex Eagle
b43b164a61 feat(bazel): add an ng_package rule ()
This produces a directory following the Angular Package layout spec.

Includes integration test coverage by making a minimal ng_package in integration/bazel.
Unit tests verify the content of the @angular/core and @angular/common packages.

This doesn't totally match our current output, but is good enough to unblock some
early adopters.

It re-uses logic from the rollup_bundle rule in rules_nodejs. It should also
eventually have the .pack and .publish secondary targets like npm_package rule.

PR Close 
2018-02-23 11:19:04 -08:00
Ricardo M
9e6268ba59 docs(http): fix a typo in code comment ()
PR Close 
2018-02-21 11:06:06 -08:00
Victor Berchet
8115edc82f fix(common): then and else template might be set to null ()
PR Close 
2018-02-18 19:25:28 -08:00
Trotyl
67cf11d071 feat(common): better error message when non-template element used in NgIf ()
closes 

PR Close 
2018-02-18 13:26:50 -08:00
Trotyl Yu
2639b4bffb fix(common): correct mapping of Observable methods ()
fixes 
PR Close 
2018-02-16 15:10:31 -08:00
Alex Eagle
a069e08354 refactor(bazel): convert most ts_library to ng_module ()
This is necessary so we can produce ng metadata for our packages that are published as libraries

PR Close 
2018-02-15 14:08:53 -08:00
Chuck Jazdzewski
be59c3a98c fix(common): weaken AsyncPipe transform signature ()
The AsyncPipe type signature was changed to allow
deferred creation of promises and observalbes that
is supported by the implementation by allowing
`Promise<T>|null|undefined` and by allowing
`Observable<T>|null|undefined`.

PR Close 
2018-02-12 15:57:29 -08:00
Alex Rickabaugh
647b8595d0 build: update some ts_library rules to ng_module ()
This is needed so the rules produce metadata.json files, which is essential
for building compiler/integration tests with Bazel.

PR Close 
2018-02-12 14:34:59 -08:00
Olivier Combe
44154e71fd fix(common): round currencies based on decimal digits in CurrencyPipe ()
By default, we now round currencies based on the number of decimal digits available for that currency instead of using the rouding defined in the number formats.
More info about that can be found in http://www.unicode.org/cldr/charts/latest/supplemental/detailed_territory_currency_information.html#format_info

Fixes 

PR Close 
2018-02-09 14:42:23 -08:00
Olivier Combe
0b2f7d13d0 fix(common): regenerate i18n locale data files ()
PR Close 
2018-02-09 14:42:23 -08:00