366 Commits

Author SHA1 Message Date
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
Olivier Combe
420cc7afc6 fix(common): add locale currency values ()
we now use locale currency symbols, since they may be different in each locale (we were only using english data previously)

Fixes 

PR Close 
2018-02-09 14:42:23 -08:00
Miško Hevery
0b1f5d2127 Revert "docs(common): add HttpParamsOptions to the public API ()"
This reverts commit a9545aba4df81a10de6692619f06b5d0c11614a8.
2018-02-08 14:37:27 -08:00
George Kalpakas
a9545aba4d docs(common): add HttpParamsOptions to the public API ()
Fixes 

PR Close 
2018-02-08 09:44:36 -08:00
Olivier Combe
64ae6d206e test(common): disable deprecated date pipe tests on chrome mobile ()
Closes 
PR Close 
2018-02-07 12:07:31 -08:00
Alex Rickabaugh
8b14488827 fix(common): don't convert null to a string when flushing a mock request ()
A bug in TestRequest caused null response bodies to be stringified. This
change causes null to be treated faithfully.

Fixes 

PR Close 
2018-02-01 08:32:43 -08:00
Olivier Combe
b62739a989 fix(common): generate closure-locale data file with exported plural functions ()
Fixes 
PR Close 
2018-01-30 11:42:31 -08:00
Olivier Combe
bb577c624b ci: unblock master by ignoring date pipe tests while we fix it ()
PR Close 
2018-01-30 11:33:46 -08:00
Alex Rickabaugh
120bdeecdc fix(common): allow HttpInterceptors to inject HttpClient ()
Previously, an interceptor attempting to inject HttpClient directly
would receive a circular dependency error, as HttpClient was
constructed via a factory which injected the interceptor instances.
Users want to inject HttpClient into interceptors to make supporting
requests (ex: to retrieve an authentication token). Currently this is
only possible by injecting the Injector and using it to resolve
HttpClient at request time.

Either HttpClient or the user has to deal specially with the circular
dependency. This change moves that responsibility into HttpClient
itself. By utilizing a new class HttpInterceptingHandler which lazily
loads the set of interceptors at request time, it's possible to inject
HttpClient directly into interceptors as construction of HttpClient no
longer requires the interceptor chain to be constructed.

Fixes .

PR Close 
2018-01-29 16:12:32 -08:00
Eli Sadoff
6e8bc310f0 docs: change ”it's" to "its" as needed in several docs. ()
Most of them are in content but one is in common and needs special approval.

PR Close 
2018-01-29 11:34:46 -08:00
vsavkin
c40ae7f7cf feat(router): add navigationSource and restoredState to NavigationStart event ()
Currently, NavigationStart there is no way to know if an navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).

PR Close 
2018-01-29 10:22:59 -08:00
Jason Aden
ede9cb7c2f Revert: "feat(router): add navigationSource and restoredState to NavigationStart event ()"
This reverts commit 3b7bab7d22064d545f1745dc3e062fcb1d91073b. Will be re-merged after fixing integration of minor breaking change.
2018-01-26 16:24:56 -08:00
vsavkin
3b7bab7d22 feat(router): add navigationSource and restoredState to NavigationStart event ()
Currently, NavigationStart there is no way to know if an navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).

PR Close 
2018-01-26 10:25:32 -08:00
Filipe Silva
fac4d8d42a build(common): specify explicit locales dir in package.json ()
PR Close 
2018-01-25 22:18:35 -08:00
Victor Berchet
7d49443060 fix(common): A null value should remove the style on IE ()
fixes 

PR Close 
2018-01-22 12:54:49 -08:00
Olivier Combe
97b18b2a5c fix(common): extract plural function from i18n locale data files for TS 2.6 ()
Fixes 

PR Close 
2018-01-19 13:23:34 -08:00
Olivier Combe
135a2822ea fix(common): don't remove special characters when extracting CLDR data ()
PR Close 
2018-01-19 13:23:34 -08:00
Alex Eagle
a1492a73ce build: Remove angular_src nested workspace ()
PR Close 
2018-01-19 10:17:37 -08:00
Trotyl
879756d44c fix(common): fallback to last defined value for named date and time formats ()
closes 

PR Close 
2018-01-18 13:39:00 -06:00
Olivier Combe
246de65140 test(common): make date pipe tests work in more timezones ()
Fixes 
PR Close 
2018-01-12 13:49:46 -08:00
Olivier Combe
05208b8513 fix(common): set correct timezone for ISO8601 dates in Safari ()
Fixes 
PR Close 
2018-01-12 13:20:48 -08:00
Alex Eagle
c4f02e21dd build: move repeated tsconfig attributes to a macro ()
This helps ensure we use the same tsconfig.json file for all compilations.
Next steps are to make it the same tsconfig.json file used by the editor

PR Close 
2018-01-10 12:30:19 -08:00