react-intl 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +20 -0
- package/dist/react-intl.js +145 -615
- package/dist/react-intl.js.map +1 -1
- package/dist/react-intl.min.js +2 -2
- package/dist/react-intl.min.js.map +1 -1
- package/lib/index.es.js +74 -520
- package/lib/index.js +110 -556
- package/package.json +24 -20
- package/yarn.lock +4804 -0
- package/src/components/date.js +0 -46
- package/src/components/html-message.js +0 -87
- package/src/components/message.js +0 -134
- package/src/components/number.js +0 -46
- package/src/components/plural.js +0 -58
- package/src/components/provider.js +0 -176
- package/src/components/relative.js +0 -163
- package/src/components/time.js +0 -46
- package/src/define-messages.js +0 -11
- package/src/en.js +0 -2
- package/src/format.js +0 -275
- package/src/index.js +0 -12
- package/src/inject.js +0 -61
- package/src/locale-data-registry.js +0 -42
- package/src/plural.js +0 -28
- package/src/react-intl.js +0 -24
- package/src/types.js +0 -88
- package/src/utils.js +0 -93
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-intl",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -70,46 +70,48 @@
|
|
|
70
70
|
"invariant": "^2.1.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"react": "^0.14.
|
|
73
|
+
"react": "^0.14.9 || ^15.0.0",
|
|
74
|
+
"prop-types": "^15.5.4"
|
|
74
75
|
},
|
|
75
76
|
"devDependencies": {
|
|
76
77
|
"babel-cli": "^6.2.0",
|
|
77
78
|
"babel-eslint": "^7.1.1",
|
|
78
|
-
"babel-jest": "^
|
|
79
|
+
"babel-jest": "^19.0.0",
|
|
80
|
+
"babel-plugin-external-helpers": "^6.18.0",
|
|
79
81
|
"babel-plugin-react-intl": "^2.0.0",
|
|
82
|
+
"babel-plugin-transform-async-to-generator": "^6.16.0",
|
|
80
83
|
"babel-plugin-transform-class-properties": "^6.11.5",
|
|
81
|
-
"babel-plugin-transform-es2015-modules-commonjs": "^6.
|
|
84
|
+
"babel-plugin-transform-es2015-modules-commonjs": "^6.18.0",
|
|
82
85
|
"babel-plugin-transform-es3-member-expression-literals": "^6.3.13",
|
|
83
86
|
"babel-plugin-transform-es3-property-literals": "^6.3.13",
|
|
84
87
|
"babel-plugin-transform-object-rest-spread": "^6.1.18",
|
|
85
|
-
"babel-plugin-transform-react-remove-prop-types": "^0.2
|
|
86
|
-
"babel-polyfill": "^6.3.14",
|
|
88
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.3.2",
|
|
87
89
|
"babel-preset-es2015": "^6.1.18",
|
|
88
|
-
"babel-preset-es2015-rollup": "^3.0.0",
|
|
89
90
|
"babel-preset-react": "^6.1.18",
|
|
90
91
|
"babelify": "^7.2.0",
|
|
91
92
|
"benchmark": "^2.1.0",
|
|
92
|
-
"browserify": "^
|
|
93
|
+
"browserify": "^14.0.0",
|
|
93
94
|
"browserify-shim": "^3.8.11",
|
|
94
95
|
"cross-env": "^3.1.3",
|
|
95
96
|
"eslint": "^3.10.2",
|
|
96
97
|
"eslint-plugin-react": "^6.2.0",
|
|
97
98
|
"expect": "^1.9.0",
|
|
98
|
-
"expect-jsx": "^
|
|
99
|
+
"expect-jsx": "^3.0.0",
|
|
99
100
|
"express": "^4.13.3",
|
|
100
101
|
"formatjs-extract-cldr-data": "^2.0.0",
|
|
101
102
|
"glob": "^7.0.0",
|
|
102
103
|
"intl": "^1.2.1",
|
|
103
104
|
"intl-messageformat-parser": "^1.2.0",
|
|
104
|
-
"jest": "^
|
|
105
|
+
"jest": "^19.0.0",
|
|
105
106
|
"mkdirp": "^0.5.1",
|
|
106
|
-
"
|
|
107
|
-
"react
|
|
108
|
-
"react-dom": "^15.
|
|
107
|
+
"prop-types": "^15.5.4",
|
|
108
|
+
"react": "^15.5.4",
|
|
109
|
+
"react-dom": "^15.5.4",
|
|
110
|
+
"react-test-renderer": "^15.5.4",
|
|
109
111
|
"rimraf": "^2.4.2",
|
|
110
|
-
"rollup": "^0.
|
|
112
|
+
"rollup": "^0.41.4",
|
|
111
113
|
"rollup-plugin-babel": "^2.3.9",
|
|
112
|
-
"rollup-plugin-commonjs": "^
|
|
114
|
+
"rollup-plugin-commonjs": "^7.0.0",
|
|
113
115
|
"rollup-plugin-memory": "^2.0.0",
|
|
114
116
|
"rollup-plugin-node-resolve": "^2.0.0",
|
|
115
117
|
"rollup-plugin-replace": "^1.1.0",
|
|
@@ -119,16 +121,16 @@
|
|
|
119
121
|
"watchify": "^3.7.0"
|
|
120
122
|
},
|
|
121
123
|
"scripts": {
|
|
122
|
-
"clean": "rimraf src/en.js coverage/ dist/ lib/ locale-data/",
|
|
124
|
+
"clean": "rimraf src/en.js coverage/ dist/ lib/ locale-data/ test/renderer.js",
|
|
123
125
|
"build:data": "babel-node scripts/build-data",
|
|
124
|
-
"build:lib": "
|
|
125
|
-
"build:dist:dev": "cross-env NODE_ENV=development
|
|
126
|
-
"build:dist:prod": "cross-env NODE_ENV=production
|
|
126
|
+
"build:lib": "rollup -c rollup.config.lib.js",
|
|
127
|
+
"build:dist:dev": "cross-env NODE_ENV=development rollup -c rollup.config.dist.js",
|
|
128
|
+
"build:dist:prod": "cross-env NODE_ENV=production rollup -c rollup.config.dist.js",
|
|
127
129
|
"build:dist": "npm run build:dist:dev && npm run build:dist:prod",
|
|
128
130
|
"build": "npm run build:data && npm run build:lib && npm run build:dist",
|
|
129
131
|
"react:clean": "rimraf node_modules/{react,react-dom,react-addons-test-utils}",
|
|
130
132
|
"react:14": "npm run react:clean && npm i react@^0.14 react-dom@^0.14 react-addons-test-utils@^0.14",
|
|
131
|
-
"react:15": "npm run react:clean && npm i react@^15 react-dom@^15
|
|
133
|
+
"react:15": "npm run react:clean && npm i react@^15 react-dom@^15",
|
|
132
134
|
"lint": "eslint .",
|
|
133
135
|
"lint:fix": "eslint . --fix",
|
|
134
136
|
"test": "jest --coverage --verbose",
|
|
@@ -136,6 +138,8 @@
|
|
|
136
138
|
"test:all": "npm run lint && npm run test && npm run test:react",
|
|
137
139
|
"test:watch": "jest --watch",
|
|
138
140
|
"test:perf": "cross-env NODE_ENV=production babel-node test/perf",
|
|
141
|
+
"examples:install": "babel-node scripts/examples npm install",
|
|
142
|
+
"examples:link": "npm link && babel-node scripts/examples npm link react-intl",
|
|
139
143
|
"preversion": "npm run clean && npm run build && npm run test:all",
|
|
140
144
|
"prepublish": "npm run clean && npm run build"
|
|
141
145
|
}
|