prismic-javascript
Advanced tools
Comparing version 2.7.1 to 3.0.0-beta.0
@@ -13,16 +13,16 @@ { | ||
], | ||
"version": "2.7.1", | ||
"version": "3.0.0-beta.0", | ||
"devDependencies": { | ||
"chai": "^4.1.1", | ||
"json-loader": "^0.5.4", | ||
"@rollup/plugin-typescript": "^4.1.1", | ||
"@typescript-eslint/eslint-plugin": "^2.29.0", | ||
"@typescript-eslint/parser": "^2.29.0", | ||
"chai": "^4.2.0", | ||
"eslint": "^6.8.0", | ||
"mocha": "^5.2.0", | ||
"nock": "^10.0.6", | ||
"ts-loader": "^4.4.1", | ||
"tslint": "^5.1.0", | ||
"tslint-config-airbnb": "^5.11.1", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^2.3.2", | ||
"webpack": "^4.12.0", | ||
"webpack-cli": "^3.0.8", | ||
"yargs": "^11.0.0" | ||
"nock": "^11.6.0", | ||
"rollup": "^2.1.0", | ||
"rollup-plugin-terser": "^5.3.0", | ||
"tslib": "^1.11.1", | ||
"typedoc": "^0.17.6", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -33,17 +33,25 @@ "repository": { | ||
}, | ||
"main": "dist/prismic-javascript.min.js", | ||
"types": "./d.ts/index.d.ts", | ||
"main": "cjs/prismic-javascript.js", | ||
"module": "esm/prismic-javascript.mjs", | ||
"unpkg": "umd/prismic-javascript.min.js", | ||
"files": [ | ||
"cjs/", | ||
"esm/", | ||
"umd/", | ||
"types/" | ||
], | ||
"types": "./types/index.d.ts", | ||
"scripts": { | ||
"build": "node node_modules/webpack-cli -p", | ||
"dev": "node node_modules/webpack-cli -d --watch", | ||
"check": "tsc --pretty --noEmit --project ./tsconfig.json --watch", | ||
"test": "mocha", | ||
"prepare": "npm run build & npm run docs", | ||
"docs": "typedoc --mode file --out ./docs/ ./src/index.ts", | ||
"lint": "tslint src/**/*.ts -e src/lru.ts -e src/Cookies.ts" | ||
"build": "rollup -c", | ||
"dev": "rollup -c -w", | ||
"check": "tsc --pretty --noEmit --watch", | ||
"test": "npm run build && mocha", | ||
"prepublish": "npm run build & npm run docs & npm run declarations", | ||
"docs": "typedoc --mode file --out ./docs ./src/index.ts", | ||
"declarations": "tsc --emitDeclarationOnly --declaration --declarationDir ./types", | ||
"lint": "eslint src/**/*.ts" | ||
}, | ||
"dependencies": { | ||
"cross-fetch": "^2.2.3", | ||
"promise-polyfill": "8.0.0" | ||
"cross-fetch": "^3.0.4" | ||
} | ||
} |
@@ -13,2 +13,5 @@ ## JavaScript development for prismic.io API v2 | ||
🎉Our library will hit v3 soon! That's right, it's the v3 of an API V2 package... | ||
You can try it by installing the beta version from npm. [Read the changelog](https://github.com/prismicio/prismic-javascript/releases/tag/3.0.0)! | ||
--- | ||
@@ -24,2 +27,3 @@ | ||
> [Downloadable version](#downloadable-version) <br /> | ||
> [Polyfills](#polyfills) <br /> | ||
> [Demo project](#demo-project) <br /> | ||
@@ -89,8 +93,5 @@ > [Starter kits](#starter-kits) <br /> | ||
The kit is universal, it can be used: | ||
#### Polyfills | ||
To support legacy browsers include a promise polyfill. | ||
* Server-side with NodeJS | ||
* Client-side as part of your build with Browserify, Webpack | ||
* Client-side with a simple script tag | ||
#### Starter kits | ||
@@ -140,3 +141,3 @@ | ||
If you included prismic through the script tag (CDN) there is a global variable PrismicJS: | ||
If you included prismic through the script tag (CDN) there is a global variable PrismicJS: | ||
```javascript | ||
@@ -143,0 +144,0 @@ PrismicJS.api("https://your-repository-name.prismic.io/api").then( api => { |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
567
0
1
474017
30
4590
4
+ Addedcross-fetch@3.1.8(transitive)
- Removedpromise-polyfill@8.0.0
- Removedcross-fetch@2.2.6(transitive)
- Removedpromise-polyfill@8.0.0(transitive)
- Removedwhatwg-fetch@2.0.4(transitive)
Updatedcross-fetch@^3.0.4