Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
Misko Hevery
2d6a003dba
feat: update RxJS peer dependency to 5.0.0-rc.4
...
Closes #13125
RxJS from beta-12 to rc.4, has removed the `cache`
operator. (See https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#breaking-changes-1 )
If your application relies on it, then we suggest
that you use the one from this gist:
https://gist.github.com/robwormald/19dea0c70a6e01aadced6731aed4f9f7
2016-11-29 16:27:33 -08:00
Flounn
94b8612e4e
Fix(http): invalidStateError response body
...
Check on null value failed with last version of mozilla.
Check on undefined type instead.
2016-11-28 14:36:32 -08:00
Alex Eagle
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -08:00
João Dias
13ba2f90b9
refactor(http): remove all facade methods from http module ( #12870 )
2016-11-15 09:19:14 -08:00
Dzmitry Shylovich
1d53a870dd
fix(http): return request url if it cannot be retrieved from response
...
closes #12837
2016-11-14 12:54:43 -08:00
Dzmitry Shylovich
a0c58a6b5c
fix(http): correctly handle response body for 204 status code
...
closes #12830
fixes #12393
2016-11-14 12:36:22 -08:00
Dzmitry Shylovich
d3eff6c483
refactor(xhr_backend): remove facade
2016-11-14 12:36:16 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Victor Berchet
ec92f4b198
refactor: remove `keys()` and `values()` from MapWrapper
2016-11-04 13:27:38 -07:00
Alex Rickabaugh
121e5080aa
fix(http): preserve header case when copying headers ( #12697 )
2016-11-04 13:26:38 -07:00
Barna Tóth
b4265e0685
fix(xsrf): overwrite already set xsrf header
2016-10-26 14:55:24 -07:00
Victor Berchet
76dd026447
refactor: remove some facades ( #12335 )
2016-10-19 13:42:39 -07:00
Martin Probst
8409b65153
fix(http): make normalizeMethodName optimizer-compatible. ( #12370 )
...
`normalizeMethodName` reflectively accessed the RequestMethod enum. With a smart
optimizer, properties from the enum could be removed or renamed, and so user
code just passing in e.g. 'PATCH' might not work. This change fixes the code to
be more explicit and avoids the optimizer issue.
2016-10-18 11:21:54 -07:00
Dzmitry Shylovich
8603d9c269
refactor(http): use Http.request for all http shorthand methods ( #12319 )
2016-10-17 23:04:25 -07:00
Victor Berchet
f4566f8128
fix(http): fix Headers initialization from Headers and Object ( #12106 )
2016-10-06 15:21:27 -07:00
Victor Berchet
a67c06708d
fix(http): Headers.append should append to the list
2016-10-06 15:21:03 -07:00
Victor Berchet
d9d57d71dd
refactor(http): move one Headers test inside the main describe
2016-10-06 15:21:03 -07:00
Alex Eagle
8c975ed156
refactor(facade): inline StringWrapper ( #12051 )
2016-10-06 15:10:27 -07:00
Victor Berchet
cf269d9ff4
refactor: add license header to JS files & format files ( #12081 )
2016-10-04 20:39:20 -07:00
Chuck Jazdzewski
43d3a84df3
Revert "refactor: add license header to JS files & format files ( #12035 )"
...
This reverts commit 8310c91823
.
2016-10-04 14:06:41 -07:00
Victor Berchet
8310c91823
refactor: add license header to JS files & format files ( #12035 )
2016-10-04 13:15:49 -07:00
Victor Berchet
ed9c2b6281
fix(Header): preserve case of the first init, `set()` or `append()` ( #12023 )
...
fixes #11624
2016-10-03 15:27:56 -07:00
alexbyk
bf7b82b658
fix(UrlSearchParams): change a behavior when a param value is null or undefined ( #11990 )
2016-09-30 09:57:26 -07:00
Alex Eagle
0286956107
refactor(facade): Inline isBlank called with object-type argument ( #11992 )
2016-09-30 09:26:53 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Victor Berchet
58605cf350
refactor(facade): remove useless facades
2016-09-27 16:13:09 -07:00
Flounn
5ab5cc77bb
Fix(http): invalidStateError if response body without content ( #11786 )
...
Fix(http): invalidStateError if response body without content
If the responseType has been specified and other than 'text', responseText throw an InvalidStateError exception
See XHR doc => https://xhr.spec.whatwg.org/#the-responsetext-attribute
Unit Test to prevent invalidStateError
2016-09-24 05:44:01 +09:00
Victor Berchet
671f73448c
refactor: misc cleanup ( #11654 )
2016-09-19 17:15:57 -07:00
Igor Minar
cb657c4b55
docs: update descriptions in package.jsons
2016-09-14 16:44:39 -07:00
Igor Minar
cc7780adf7
build(npm): update to rxjs@5.0.0-beta.12
...
Fixes #11300
2016-09-12 12:05:00 -07:00
Rob Wormald
d296298282
fix(build): prevent package tsconfigs from shadowing main tsconfig ( #11454 )
2016-09-08 15:01:22 -07:00
Igor Minar
174c016104
fix(bundles): correct RxJS mapping in rollup config for umd/es5 bundles
2016-08-30 21:07:45 -07:00
Igor Minar
71ae2c4525
refactor(webworkers): move webworkers to separate @angular/platform-webworker and @angular/platform-webworker-dynamic packages
...
BREAKING CHANGE: web worker platform is now exported via separate packages.
Please use @angular/platform-webworker and @angular/platform-webworker-dynamic
2016-08-30 21:07:45 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Florian Knop
75553200c0
fix(http): encode correct value for %3D ( #9790 )
2016-08-26 15:47:29 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
Marc Laval
66df335998
chore(dependencies): switch from es6-shim to core-js ( #10884 )
2016-08-25 17:28:36 -07:00
Igor Minar
7dfcaac730
fix(http): restructure exports so that we don't leak private factory functions ( #11016 )
...
Ref #10615
2016-08-23 16:34:57 -07:00
Chuck Jazdzewski
39a2c39cef
feat(compiler): Added "strictMetadataEmit" option to ngc ( #10951 )
...
ngc can now validate metadata before emitting to verify it doesn't
contain an error symbol that will result in a runtime error if
it is used by the StaticReflector.
To enable this add the section,
"angularCompilerOptions": {
"strictMetadataEmit": true
}
to the top level of the tsconfig.json file passed to ngc.
Enabled metadata validation for packages that are intended to be
used statically.
2016-08-22 17:37:48 -07:00
Rob Wormald
ca41b4f5ff
feature(core): update RxJS to 5.0.0-beta.11 ( #10648 )
2016-08-22 17:17:23 -07:00
Alex Rickabaugh
477e425f57
fix(http): inline HTTP_PROVIDERS and JSONP_PROVIDERS until the metadata collector can do it automatically. ( #10928 )
2016-08-18 15:01:07 -07:00
Marcus Krahl
654ff6115a
fix(http): deep copy for constructor using existing Headers ( #10679 )
...
When creating a new Headers object using an existing Headers object
the existing Headers map is copied by reference. Therefore adding a
new Header value to the new Headers object also added this value to
the existing Headers object which is not in accordance with the
spec.
This commit alters the constructor to create a deep copy of existing
Headers maps and therefore unlink existing Headers from new Headers.
Closes #6845
BREAKING CHANGE:
any code which relies on the fact that a newly
created Headers object is referencing an existing Headers map is
now broken, but that should normally not be the case since this
behavior is not documented and not in accordance with the spec.
2016-08-18 15:00:44 -07:00
Hans
40e160c22c
fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER ( #10866 )
...
* fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER
Closes #9741
BREAKING CHANGE:
`CACHED_TEMPLATE_PROVIDER` is now renamed to `RESOURCE_CACHE_PROVIDER`
Before:
```js
import {CACHED_TEMPLATE_PROVIDER} from '@angular/platform-browser-dynamic';
```
After:
```js
import {RESOURCE_CACHE_PROVIDER} from '@angular/platform-browser-dynamic';
```
* Rename XHR -> ResourceLoader
2016-08-17 09:24:44 -07:00
Chuck Jazdzewski
675e582ffd
refactor(http): Removed deprecated HTTP_PROVIDERS and JSONP_PROVIDERS ( #10864 )
...
BREAKING CHANGE: previously deprecated HTTP_PROVIDERS and JSONP_PROVIDERS were removed; see deprecation notice for migration instructions.
2016-08-17 07:43:31 -07:00
Victor Savkin
f7ff6c5a12
refactor(core): remove deprecated 'bootstrap' ( #10831 )
2016-08-16 11:15:01 -07:00
Suguru Inatomi
203b2ba637
fix(http): expose jsonpFactory for AoT compilation ( #10730 )
2016-08-12 11:30:12 -07:00
Daniel Leib
7cd4741fcb
fix(http): return empty string if no body is present ( #10668 )
2016-08-11 21:40:18 -07:00
Alex Eagle
7fac4efede
chore(facades): missed a couple places in #10620 ( #10661 )
...
This lets us skip src/facade/exception* when compiling modules other than core
2016-08-11 08:39:13 -07:00
Alex Eagle
6f4ee6101c
chore(imports): don't import ExceptionHandler from facade ( #10620 )
...
This lets us skip src/facade/exception* when compiling modules other than core.
It prevents having many conflicting declarations
2016-08-10 15:55:18 -07:00