Skip to content

Commit 599d72a

Browse files
committed
Merge branch 'master' into release
2 parents 1aff558 + 5e2708c commit 599d72a

17 files changed

+11591
-84
lines changed

.babelrc

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

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
##### 3.0.0 - 02 July 2017
2+
3+
**v3 stable release**
4+
5+
###### Bug fixes
6+
- #65 - axios as devDependency
7+
- #68 - Impossible to set timeout globally
8+
19
##### 3.0.0-rc.3 - 18 August 2016
210

311
###### Backwards compatible changes

fetch/karma.start.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
before(function () {
44
var Test = this
5-
Test.TEST_FETCH = true
5+
Test.TEST_FETCH = window.navigator.userAgent.indexOf('MSIE 9.0') === -1
66
Test.fail = function (msg) {
77
if (msg instanceof Error) {
88
console.log(msg.stack)
@@ -49,6 +49,7 @@ beforeEach(function () {
4949

5050
Test.requests = []
5151

52+
Test.adapter.isFetch = true
5253
Test.adapter.http = function (config) {
5354
config.headers || (config.headers = {})
5455
config.headers.Accept = 'application/json, text/plain, */*'

fetch/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-fetch",
33
"description": "HTTP adapter for js-data that uses the fetch API.",
4-
"version": "3.0.0-rc.3",
4+
"version": "3.0.0",
55
"homepage": "https://github.com/js-data/js-data-http",
66
"repository": {
77
"type": "git",
@@ -21,9 +21,10 @@
2121
"http"
2222
],
2323
"dependencies": {
24-
"js-data-adapter": "~0.8.2"
24+
"js-data": ">= 3.0.0",
25+
"js-data-adapter": "1.0.0"
2526
},
2627
"peerDependencies": {
27-
"js-data": "^3.0.0-rc.4"
28+
"js-data": ">= 3.0.0"
2829
}
2930
}

fetch/rollup.config.js

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
var babel = require('rollup-plugin-babel')
2-
var replace = require('rollup-plugin-replace')
1+
import babel from 'rollup-plugin-babel'
2+
import replace from 'rollup-plugin-replace'
33

4-
module.exports = {
4+
export default {
55
moduleName: 'JSDataHttp',
6-
moduleId: 'js-data-fetch',
6+
amd: {
7+
id: 'js-data-fetch'
8+
},
79
external: [
810
'js-data'
911
],
@@ -16,9 +18,18 @@ module.exports = {
1618
}),
1719
babel({
1820
babelrc: false,
21+
plugins: [
22+
'external-helpers'
23+
],
1924
presets: [
20-
'es2015-rollup'
21-
]
25+
[
26+
'es2015',
27+
{
28+
modules: false
29+
}
30+
]
31+
],
32+
exclude: 'node_modules/axios/**'
2233
})
2334
]
2435
}

karma.conf.js

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ module.exports = function (config) {
5252
browsers: browsers,
5353
files: [
5454
'node_modules/babel-polyfill/dist/polyfill.js',
55-
'node_modules/whatwg-fetch/fetch.js',
5655
'node_modules/js-data/dist/js-data.js',
5756
'dist/js-data-http.js',
5857
'karma.start.js',

node/mocha.start.js

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ beforeEach(function () {
4949

5050
Test.requests = []
5151

52+
Test.adapter.isNode = true
5253
Test.adapter.http = function (config) {
5354
config.headers || (config.headers = {})
5455
config.headers.Accept = 'application/json, text/plain, */*'

node/package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-http-node",
33
"description": "Node.js HTTP adapter for js-data.",
4-
"version": "3.0.0-rc.3",
4+
"version": "3.0.0",
55
"homepage": "https://github.com/js-data/js-data-http",
66
"repository": {
77
"type": "git",
@@ -22,10 +22,11 @@
2222
"node.js"
2323
],
2424
"dependencies": {
25-
"js-data-adapter": "~0.8.2"
25+
"js-data": ">= 3.0.0",
26+
"js-data-adapter": "1.0.0"
2627
},
2728
"peerDependencies": {
28-
"axios": "^0.13.1",
29-
"js-data": "^3.0.0-rc.4"
29+
"axios": "0.16.2",
30+
"js-data": ">= 3.0.0"
3031
}
3132
}

node/rollup.config.js

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
var babel = require('rollup-plugin-babel')
2-
var replace = require('rollup-plugin-replace')
1+
import babel from 'rollup-plugin-babel'
2+
import replace from 'rollup-plugin-replace'
33

4-
module.exports = {
4+
export default {
55
moduleName: 'JSDataHttpNode',
6-
moduleId: 'js-data-http-node',
6+
amd: {
7+
id: 'js-data-http-node'
8+
},
79
external: [
810
'axios',
911
'js-data',
@@ -21,9 +23,18 @@ module.exports = {
2123
}),
2224
babel({
2325
babelrc: false,
26+
plugins: [
27+
'external-helpers'
28+
],
2429
presets: [
25-
'es2015-rollup'
26-
]
30+
[
31+
'es2015',
32+
{
33+
modules: false
34+
}
35+
]
36+
],
37+
exclude: 'node_modules/axios/**'
2738
})
2839
]
2940
}

0 commit comments

Comments
 (0)