- Linting (ESLint compat): Add eslint-plugin-compat to get browser support

warnings
- Docs (README): Indicate minimal polyfills needed for older browsers
    (IE <= 11, IE Mobile, Opera Mini, Blackberry Browser <= 10,
    Android Browser 4.4.3-4.4.4)
- npm: Update devDeps
master
Brett Zamir 2018-10-29 08:46:34 +08:00
parent 14aad38bd6
commit 9b9c900ede
5 changed files with 369 additions and 356 deletions

View File

@ -1,13 +1,19 @@
{
"extends": ["standard", "plugin:qunit/recommended", "plugin:testcafe/recommended"],
"extends": [
"standard", "plugin:compat/recommended",
"plugin:qunit/recommended", "plugin:testcafe/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"plugins": ["qunit", "testcafe"],
"plugins": ["compat", "qunit", "testcafe"],
"env": {
"node": false,
"browser": true
},
"settings": {
"polyfills": ["url", "promises", "fetch", "queryselector"]
},
"rules": {
"semi": [2, "always"],
"indent": ["error", 2, {"outerIIFEBody": 0}],

View File

@ -1,7 +1,13 @@
# ?
- Linting (ESLint compat): Add eslint-plugin-compat to get browser support
warnings
- Docs (README): Indicate minimal polyfills needed for older browsers
(IE <= 11, IE Mobile, Opera Mini, Blackberry Browser <= 10,
Android Browser 4.4.3-4.4.4)
- Docs (3.0.0): Clarify
- Docs (ReleaseInstructions): Clarify need for npm permissions to publish
- npm: Update devDeps
# 3.1.1

View File

@ -38,6 +38,21 @@ For testing the latest version in `master`, you may use
<iframe src="svgedit/editor/svg-editor.html?extensions=" width="100%" height="100%"></iframe>
```
Note that if you want support for the following browsers, you will at least
need some polyfills.
For Android Browser 4.4.3-4.4.4, you will need at least `fetch`.
For the following, you will need at least `URL`, `Promise`, and `fetch`:
- IE <= 11
- IE Mobile
- Opera Mini
- Blackberry Browser <= 10
And for still older browsers (e.g., IE 8), you will at minimum need a
`querySelector` polyfill.
### Integrating SVG-edit into your own npm package
These steps are only needed if you wish to set up your own npm package

672
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -53,6 +53,15 @@
"url": "https://github.com/SVG-Edit/svgedit/issues"
},
"homepage": "https://github.com/SVG-Edit/svgedit#readme",
"browserslist": [
"cover 100%",
"last 3 Chrome versions", "last 3 Firefox versions", "last 3 Edge versions",
"last 3 Safari versions", "last 3 ios_saf versions", "last 3 Android versions",
"last 3 Opera versions", "last 3 IE versions", "last 3 op_mini versions",
"last 3 bb versions", "last 3 op_mob versions", "last 3 and_chr versions",
"last 3 and_ff versions", "last 3 ie_mob versions", "last 3 and_uc versions",
"last 3 Samsung versions"
],
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.1.2",
@ -60,10 +69,11 @@
"@babel/preset-env": "^7.1.0",
"axe-testcafe": "^1.1.0",
"babel-plugin-transform-object-rest-spread": "^7.0.0-beta.3",
"eslint": "5.7.0",
"eslint": "5.8.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-compat": "2.6.2",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-node": "7.0.1",
"eslint-plugin-node": "8.0.0",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-qunit": "^4.0.0",
"eslint-plugin-standard": "4.0.0",
@ -79,7 +89,7 @@
"qr-manipulation": "https://github.com/brettz9/qr-manipulation",
"query-result": "https://github.com/WebReflection/query-result",
"qunit": "^2.7.1",
"remark-cli": "^5.0.0",
"remark-cli": "^6.0.0",
"remark-lint-ordered-list-marker-value": "^1.0.2",
"rollup": "0.66.6",
"rollup-plugin-babel": "^4.0.3",
@ -89,8 +99,8 @@
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-re": "^1.0.7",
"rollup-plugin-terser": "^3.0.0",
"sinon": "^7.0.0",
"sinon": "^7.1.0",
"sinon-test": "^2.4.0",
"testcafe": "^0.22.0"
"testcafe": "^0.23.0"
}
}