Skip to content

Commit ec65b9f

Browse files
committed
Stable Version 3.0.0-alpha.2
1 parent 39cd53b commit ec65b9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1198
-2012
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

.bowerrc

-3
This file was deleted.

.gitignore

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
node_modules/
21
bower_components/
3-
4-
.idea/
5-
6-
*.iml
7-
8-
coverage/
9-
10-
dist/js-data-http-tests*
112
build_examples/r.js/bundle.js
123
build_examples/browserify/bundle.js
134
build_examples/webpack/bundle.js
145
build_examples/webpack_es6/bundle.js
156
build_examples/webpack_es6_2/bundle.js
7+
node_modules/
8+
.idea/
9+
*.iml
10+
coverage/
11+
doc/
12+
junit/
1613
*.log

.npmignore

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
test/
1+
build_examples/
2+
coverage/
23
fetch/
34
node/
5+
scripts/
46
src/
5-
mocha.start.js
6-
karma.start.js
7+
test/
8+
.gitignore
9+
bower.json
10+
circle.yaml
11+
CONTRIBUTING.md
712
karma.conf.js
8-
.bowerrc
9-
scripts/
13+
karma.start.js
1014
webpack.config.js
11-
*.log
15+
*.log

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
##### 3.0.0-alpha.2 - 09 January 2016
2+
3+
###### Breaking API changes
4+
- All options that could be found at `DSHttpAdapter#defaults` will now be on
5+
the actual instances of `DSHttpAdapter`. e.g. `DSHttpAdapter#defaults.deserialize`
6+
is now at `DSHttpAdapter#deserialize`. This makes it easier to extend the
7+
`DSHttpAdapter` class and override its methods.
8+
9+
###### Backwards compatible API changes
10+
- Added lifecycle methods: beforeFind, afterPOST, etc.
11+
- Added support for the `raw` option
12+
113
##### 3.0.0-alpha.1 - 12 December 2015
214

315
###### Breaking API changes

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2015 Jason Dobry
3+
Copyright (c) 2014-2016 Jason Dobry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+62-21
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,38 @@
1-
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="64" height="64" />
1+
<img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" />
22

3-
## js-data-http [![Slack Status][sl_b]][sl_l] [![npm version][npm_b]][npm_l] [![Circle CI][circle_b]][circle_l] [![npm downloads][dn_b]][dn_l] [![Coverage Status][cov_b]][cov_l] [![Codacy][cod_b]][cod_l]
3+
# js-data-http
44

5-
HTTP adapter for [js-data](http://www.js-data.io/).
5+
[![Slack Status][sl_b]][sl_l]
6+
[![npm version][npm_b]][npm_l]
7+
[![Circle CI][circle_b]][circle_l]
8+
[![npm downloads][dn_b]][dn_l]
9+
[![Coverage Status][cov_b]][cov_l]
10+
[![Codacy][cod_b]][cod_l]
611

7-
The `js-data-http` npm package is for use in the Browser, and the `js-data-http-node`
8-
package is for use in Node.js.
12+
This repo contains HTTP adapters for [js-data](http://www.js-data.io/):
913

10-
### API Documentation
11-
[DSHttpAdapter](http://www.js-data.io/docs/dshttpadapter)
14+
- js-data-http - HTTP (XHR, includes [axios][axios]) adapter for js-data in the
15+
browser. Capable of using `window.fetch` instead of axios.
16+
- js-data-fetch - Same as js-data-http but doesn't include axios and will use
17+
`window.fetch` if available and if you don't provide your own http library.
18+
- js-data-http-node - Same as js-data-http but runs on Node.js. Depends on axios
19+
and will use axios unless you provide a different http library.
1220

13-
### Quick Start
21+
Tested on IE9, Chrome 46, Firefox 41 & Safari 7.1 using
22+
<img src="https://raw.githubusercontent.com/js-data/js-data-localstorage/master/bs.jpg" alt="bs logo" title="browserstack" width="150" height="35" style="vertical-align: middle" />
23+
24+
## Table of contents
25+
26+
* [Quick start](#quick-start)
27+
* [Dependencies](#dependencies)
28+
* [Documentation](#documentation)
29+
* [API Reference](#api-reference)
30+
* [Support](#support)
31+
* [Community](#community)
32+
* [Contributing](#contributing)
33+
* [License](#license)
34+
35+
## Quick Start
1436

1537
#### Browser
1638

@@ -83,18 +105,37 @@ var Student = Base.extend({}, { name: 'Student' })
83105
// "School" and "Student" will now use the http adapter by default
84106
```
85107

86-
### Changelog
87-
[CHANGELOG.md](https://github.com/js-data/js-data-http/blob/master/CHANGELOG.md)
108+
## Dependencies
109+
110+
`js-data-http` bundles axios and depends on `js-data`. `js-data-fetch` depends
111+
on `js-data`. `js-data-http-node` depends on `js-data` and optionally axios.
112+
113+
See [JSData's dependencies](https://github.com/js-data/js-data/blob/master/README.md#dependencies).
114+
115+
## Documentation
116+
- [Getting Started with js-data](http://www.js-data.io/docs/home)
117+
- [js-data-http](http://www.js-data.io/docs/js-data-http)
118+
- [CHANGELOG.md](https://github.com/js-data/js-data-http/blob/master/CHANGELOG.md)
88119

89-
### Community
90-
- [Slack Channel][sl_l] - Better than IRC!
120+
## API Reference
121+
- [DS](http://www.js-data.io/docs/ds)
122+
- [DSHttpAdapter](http://www.js-data.io/docs/dshttpadapter)
123+
124+
## Support
125+
126+
Support questions are handled via [Stack Overflow][so], [Slack][sl_l], and the
127+
[Mailing List][ml]. Ask your questions there.
128+
129+
## Community
130+
- [Stack Overflow][so]
131+
- [Slack chat][sl_l]
91132
- [Announcements](http://www.js-data.io/blog)
92-
- [Mailing List](https://groups.io/org/groupsio/jsdata) - Ask your questions!
93-
- [Issues](https://github.com/js-data/js-data-http/issues) - Found a bug? Feature request? Submit an issue!
94-
- [GitHub](https://github.com/js-data/js-data-http) - View the source code for js-data.
133+
- [Mailing List][ml]
134+
- [Issue Tracker](https://github.com/js-data/js-data-http/issues)
135+
- [GitHub](https://github.com/js-data/js-data-http)
95136
- [Contributing Guide](https://github.com/js-data/js-data-http/blob/master/CONTRIBUTING.md)
96137

97-
### Contributing
138+
## Contributing
98139

99140
First, support is handled via the [Slack Channel][sl_l] and the
100141
[Mailing List][ml]. Ask your questions there.
@@ -109,15 +150,13 @@ code examples that revealed the issue
109150
- best - A Pull Request that fixes the issue, including test coverage for the
110151
issue and the fix
111152

112-
[Github Issues](https://github.com/js-data/js-data/issues).
113-
114153
#### Pull Requests
115154

116155
1. Contribute to the issue/discussion that is the reason you'll be developing in
117156
the first place
118157
1. Fork js-data-http
119158
1. `git clone [email protected]:<you>/js-data-http.git`
120-
1. `cd js-data-http; npm install; bower install;`
159+
1. `cd js-data-http; npm install;`
121160
1. Write your code, including relevant documentation and tests
122161
1. Run `npm test` (build and test)
123162
1. Your code will be linted and checked for formatting, the tests will be run
@@ -130,7 +169,7 @@ will be committed when a release is cut.
130169

131170
The MIT License (MIT)
132171

133-
Copyright (c) 2014-2015 Jason Dobry
172+
Copyright (c) 2014-2016 Jason Dobry
134173

135174
Permission is hereby granted, free of charge, to any person obtaining a copy
136175
of this software and associated documentation files (the "Software"), to deal
@@ -152,6 +191,7 @@ SOFTWARE.
152191

153192
[sl_b]: http://slack.js-data.io/badge.svg
154193
[sl_l]: http://slack.js-data.io
194+
[so]: http://stackoverflow.com/questions/tagged/jsdata
155195
[npm_b]: https://img.shields.io/npm/v/js-data-http.svg?style=flat
156196
[npm_l]: https://www.npmjs.org/package/js-data-http
157197
[circle_b]: https://img.shields.io/circleci/project/js-data/js-data-http/master.svg?style=flat
@@ -162,4 +202,5 @@ SOFTWARE.
162202
[cov_l]: https://coveralls.io/github/js-data/js-data-http?branch=master
163203
[cod_b]: https://img.shields.io/codacy/3931bbd8d838463297f70640aa78251b.svg
164204
[cod_l]: https://www.codacy.com/app/jasondobry/js-data-http/dashboard
165-
205+
[axios]: https://github.com/mzabriskie/axios
206+
[ml]: https://groups.io/org/groupsio/jsdata

bower.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-data-http",
3-
"description": "http adapter for js-data.",
3+
"description": "HTTP (XHR) adapter for js-data in the browser.",
44
"homepage": "http://www.js-data.io/docs/dshttpadapter",
55
"repository": {
66
"type": "git",
@@ -17,20 +17,20 @@
1717
".*",
1818
"*.iml",
1919
"src/",
20-
"lib/",
2120
"doc/",
22-
"guide/",
21+
"build_examples/",
2322
"coverage/",
24-
"Gruntfile.js",
23+
"scripts/",
24+
"junit/",
2525
"node_modules/",
26+
"fetch/",
2627
"node/",
2728
"test/",
2829
"package.json",
2930
"karma.conf.js",
3031
"karma.start.js"
3132
],
3233
"dependencies": {
33-
"axios": "0.5.x",
34-
"js-data": ">=2.0.0"
34+
"js-data": ">=3.0.0-alpha.8"
3535
}
3636
}

circle.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
machine:
22
node:
33
version: 4.1.0
4-
dependencies:
5-
pre:
6-
- bower install
7-
cache_directories:
8-
- "bower_components"
94
test:
105
override:
116
- npm run ci
127
general:
138
artifacts:
149
- "dist"
10+
- "fetch/dist"
1511
- "coverage"

0 commit comments

Comments
 (0)