Alex Castillo
7d1b6af073
style(global): group multiple imports from same module
...
Closes #7802
Closes #8209
2016-04-26 22:40:30 +00:00
Jeff Cross
b62bccf254
build(npm): update rxjs to 5.0.0-beta.6
...
Closes #6871
Closes #8047
2016-04-26 21:16:37 +00:00
Tobias Bosch
0a7d10ba55
refactor(core): separate reflective injector from Injector interface
...
BREAKING CHANGE:
- Injector was renamed into `ReflectiveInjector`,
as `Injector` is only an abstract class with one method on it
- `Injector.getOptional()` was changed into `Injector.get(token, notFoundValue)`
to make implementing injectors simpler
- `ViewContainerRef.createComponent` now takes an `Injector`
instead of `ResolvedProviders`. If a reflective injector
should be used, create one before calling this method.
(e.g. via `ReflectiveInjector.resolveAndCreate(…)`.
2016-04-20 11:28:13 -07:00
simon-ramsay
30c43521d3
fix(http) : set response.ok based on given status code
...
Closes #8056
2016-04-20 04:28:27 +00:00
Alex Rickabaugh
60727c4d2b
revert(format): Revert "chore(format): update to latest formatter"
...
This reverts commit 03627aa84d .
2016-04-12 09:41:01 -07:00
Alex Eagle
03627aa84d
chore(format): update to latest formatter
...
Closes #7958
2016-04-11 22:15:23 +00:00
gdi2290
b55f1764b5
fix(Headers): serializable toJSON
...
fixes #6073
Closes #6714
2016-02-03 14:03:01 +00:00
Jeff Cross
f2c7946cca
chore(http): make all typings explicit
2016-02-03 05:31:40 -08:00
cexbrayat
b925ff5b8d
refactor(http): rename enums to be singular
...
ReadyStates -> ReadyState
RequestMethods -> RequestMethod
ResponseTypes -> ResponseType
Fixes #5574
BREAKING CHANGE:
Before
import {ReadyStates, RequestMethods, ResponseTypes} from 'angular2/http';
After
import {ReadyState, RequestMethod, ResponseType} from 'angular2/http';
Closes #5584
2015-12-04 19:16:00 +00:00
Foxandxss
69996b1740
test(http): remove stale SpyObserver
...
Closes #5134
2015-12-03 10:54:42 -08:00
Rob Wormald
5514dc19d9
refactor(facade): use rxjs package
...
move to new RxJS distribution.
BREAKING CHANGE:
RxJS imports now are via `rxjs` instead of `@reactivex/rxjs`
Individual operators can be imported `import 'rxjs/operators/map'`
2015-12-02 16:02:34 -08:00
Rob Wormald
e1d7bdcfe7
fix(http): Fix all requests defaulting to Get
...
Honor method parameter passed to http.request().
Closes #5309
Closes #5397
2015-11-23 22:17:13 +00:00
Rob Wormald
46fc153f39
fix(http): return URL in Response
...
Attach reponseURL or X-Request-URL to Response.
Closes #5165
2015-11-23 22:17:13 +00:00
Rob Wormald
4332ccf72c
fix(http): return Response headers
...
Properly parse and add response Headers to Response.
Closes #5237
2015-11-23 22:17:13 +00:00
Rob Wormald
201f189d0e
fix(http): error on non-200 status codes
...
BREAKING CHANGE:
previously http would only error on network errors to match the fetch
specification. Now status codes less than 200 and greater than 299 will
cause Http's Observable to error.
Closes #5130 .
2015-11-23 22:17:13 +00:00
Igor Minar
bcd926adc5
fix(http): refactor 'require' statements to 'import' declarations for Rx
...
Looks like this is some old leftover code from the times when Rx didn't distribute typings via npm.
Closes #5287
2015-11-17 01:26:54 +00:00
vsavkin
79472b77ca
refactor(core): move facades out of core
...
This is part of ongoing work to make core platform-independent.
BREAKING CHANGE
All private exports from 'angular2/src/core/facade/{lang,collection,exception_handler}' should be replaced with 'angular2/src/facade/{lang,collection,exception_handler}'.
2015-11-07 01:36:06 +00:00
Rob Wormald
31687efd64
fix(http): use Response for JSONP errors
...
Return Response when JSONP backend errors
2015-11-04 19:19:50 +00:00
Martin Probst
c02f2bdab0
chore: adjust formatting to new clang-format.
...
- fixes wrapping for object literal keys called `template`.
- spacing in destructuring expressions.
- changes to keep trailing return types of functions closer to their
function declaration.
- better formatting of string literals.
Closes #4828
2015-10-28 11:19:10 +01:00
Alberto Santini
785abe5a1d
chore(http): remove double "var http" in http spec
...
Closes #4859
2015-10-22 10:08:35 +00:00
Julie Ralph
f529236bfc
refactor(test): rename test_lib to testing
...
Old test_lib is now testing_internal
test_lib_public is now testing
2015-10-13 10:36:49 -07:00
vsavkin
1aeafd31bd
feat(di): change the params of Provider and provide to start with "use"
...
Closes #4684
2015-10-12 21:09:09 +00:00
vsavkin
1eb0162cde
feat(di): rename Binding into Provider
...
Closes #4416
Closes #4654
2015-10-11 05:13:31 +00:00
vsavkin
8b725c77fd
fix(tests): fix tests
2015-10-08 13:54:44 -07:00
Alex Eagle
5458036de7
fix(typings): update test.typings for abstract superclasses
2015-10-08 13:54:43 -07:00
Alex Eagle
6075509f26
chore(typing): extract abstract superclasses to replace @private constructors
2015-10-08 13:54:43 -07:00
Victor Berchet
6b00b60488
fix(XhrBackend): setRequestHeader takes a string arg
...
Closes #4597
2015-10-08 15:59:10 +00:00
Rob Wormald
01fb06a377
chore(http): Use Observables in Http
...
- Remove ObservableWrapper/EventEmitter from Http.
- Temporarily use complete Rx build w/ all operators.
2015-10-02 17:20:25 -07:00
mgechev
34518f0f2d
feat(http): Add support for strings as http method names
...
Closes #4331
2015-10-02 11:33:49 -07:00
Alex Eagle
9b7378d132
chore(typings): remove traceur-runtime.d.ts
...
fixes #4297
Closes #4415
2015-09-30 00:07:16 +00:00