cexbrayat
e6170e8ac3
docs(http): fix MockBackend imports
...
Fixes #5639
Closes #5651
2015-12-07 15:16:18 -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
Rob Wormald
c635a73ed9
refactor(http): remove mockbackend export from angular2/http barrel
2015-12-02 16:02:34 -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
vsavkin
8daa9b202d
cleanup(testing): create top level files for mocks
...
Closes #5381
2015-11-24 19:29:52 +00:00
vsavkin
89eefcd7b5
cleanup(tooling): move tooling to the browser platform and rename profile into instrumentation
...
BREAKING CHANGE
Before
import * as p from 'angular2/profile';
import * as t from 'angular2/tools';
After
import * as p from 'angular2/instrumentation';
import * as t from 'angular2/platform/browser';
2015-11-24 19:29:52 +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
Victor Berchet
a0a627f2f9
refactor(StringWrapper): remove useless methods
...
Closes #5039
2015-11-06 17:04:01 +00:00
Rob Wormald
a9b1270a5a
fix(http): use Observable<Response> on Http methods
...
use correct type definitions for Http responses.
Closes #5017
2015-11-04 19:19:50 +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
Eric Mendes Dantas
9c63a471bb
docs(http): use http.request(FOO) instead of http(FOO)
...
Closes #4641
2015-10-28 16:22:32 -07: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
Naomi Black
be3e7db5db
docs(chore): make styles consistent for API doc headings
...
Closes #4816
2015-10-19 14:58:22 +00: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
Pawel Kozlowski
0c1f9dab54
refactor(http): use shared code from public 'angular2/angular2' namespace
...
Closes #4648
2015-10-11 11:38:19 +00:00
vsavkin
1eb0162cde
feat(di): rename Binding into Provider
...
Closes #4416
Closes #4654
2015-10-11 05:13:31 +00:00
Victor Berchet
a8c34ae290
refactor(MapWrapper): drop delete(), get(), forEach() and size
...
Closes #4618
2015-10-09 20:07:43 +00:00
Alex Eagle
6075509f26
chore(typing): extract abstract superclasses to replace @private constructors
2015-10-08 13:54:43 -07:00
Eric Mendes Dantas
21b53c3143
docs(http) remove .toRx() from http calls
...
Closes #4578
2015-10-08 17:41:15 +00:00
Victor Berchet
6b00b60488
fix(XhrBackend): setRequestHeader takes a string arg
...
Closes #4597
2015-10-08 15:59:10 +00:00
Alex Eagle
f7aa890ade
chore(docs): rename @private to @internal
...
The latter is understood by TypeScript's --stripInternal option, so this lets us
rely more on the tooling provided by typescript team.
2015-10-06 17:08:41 -07:00
Igor Minar
150cc22532
fix(http): add missing semicolon
2015-10-03 10:05:11 -07: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
Rob Wormald
a88e6f3106
refactor(http): use Observables in Http backends
...
BREAKING CHANGE: Http now returns Rx Observables directly, so calling .toRx() is no longer necessary. Additionally, Http calls are now cold, so backend requests will not fire unless .subscribe() is called.
closes #4043 and closes #2974
Closes #4376
2015-09-27 22:15:30 +00:00
Jason Teplitz
787d1f955f
fix(Typings): Remove public exports added in 1926335b85
...
Closes #4147
2015-09-11 19:16:57 -07:00
Tamas Csaba
e34a29dafe
docs(http): fix http documentation
...
Closes #3931
2015-09-11 15:37:40 -07:00