@rollup/plugin-commonjs
Advanced tools
Comparing version 22.0.2 to 23.0.0
{ | ||
"name": "@rollup/plugin-commonjs", | ||
"version": "22.0.2", | ||
"version": "23.0.0", | ||
"publishConfig": { | ||
@@ -19,7 +19,8 @@ "access": "public" | ||
"exports": { | ||
"require": "./dist/cjs/index.js", | ||
"import": "./dist/es/index.js" | ||
"import": "./dist/es/index.js", | ||
"types": "./types/index.d.ts", | ||
"default": "./dist/cjs/index.js" | ||
}, | ||
"engines": { | ||
"node": ">= 12.0.0" | ||
"node": ">=14.0.0" | ||
}, | ||
@@ -37,3 +38,3 @@ "scripts": { | ||
"pretest": "pnpm build", | ||
"release": "pnpm plugin:release --workspace-root -- --pkg $npm_package_name", | ||
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", | ||
"test": "ava", | ||
@@ -44,2 +45,3 @@ "test:ts": "tsc types/index.d.ts test/types.ts --noEmit" | ||
"dist", | ||
"!dist/**/*.map", | ||
"types", | ||
@@ -58,29 +60,31 @@ "README.md", | ||
"peerDependencies": { | ||
"rollup": "^2.68.0" | ||
"rollup": "^2.68.0||^3.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"rollup": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"@rollup/pluginutils": "^3.1.0", | ||
"@rollup/pluginutils": "^4.2.1", | ||
"commondir": "^1.0.1", | ||
"estree-walker": "^2.0.1", | ||
"glob": "^7.1.6", | ||
"is-reference": "^1.2.1", | ||
"magic-string": "^0.25.7", | ||
"resolve": "^1.17.0" | ||
"estree-walker": "^2.0.2", | ||
"glob": "^8.0.3", | ||
"is-reference": "1.2.1", | ||
"magic-string": "^0.26.4" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.1.0", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"locate-character": "^2.0.5", | ||
"require-relative": "^0.8.7", | ||
"rollup": "^2.68.0", | ||
"shx": "^0.3.2", | ||
"source-map": "^0.7.3", | ||
"source-map-support": "^0.5.19", | ||
"typescript": "^3.9.7" | ||
"rollup": "3.0.0-7", | ||
"shx": "^0.3.4", | ||
"source-map": "^0.7.4", | ||
"source-map-support": "^0.5.21", | ||
"typescript": "^4.8.3" | ||
}, | ||
"types": "types/index.d.ts", | ||
"types": "./types/index.d.ts", | ||
"ava": { | ||
"babel": { | ||
"compileEnhancements": false | ||
}, | ||
"workerThreads": false, | ||
"files": [ | ||
@@ -87,0 +91,0 @@ "!**/fixtures/**", |
@@ -16,3 +16,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-commonjs | ||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v12.0.0+) and Rollup v2.68.0+. If you are using [`@rollup/plugin-node-resolve`](https://github.com/rollup/plugins/tree/master/packages/node-resolve), it should be v13.0.6+. | ||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v2.68.0+. If you are using [`@rollup/plugin-node-resolve`](https://github.com/rollup/plugins/tree/master/packages/node-resolve), it should be v13.0.6+. | ||
@@ -63,5 +63,5 @@ ## Install | ||
You can also provide a [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, to only specify a subset of files which should be wrapped in functions for proper `require` semantics. | ||
You can also provide a [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, to only specify a subset of files which should be wrapped in functions for proper `require` semantics. | ||
`"debug"` works like `"auto"` but after bundling, it will display a warning containing a list of ids that have been wrapped which can be used as minimatch pattern for fine-tuning or to avoid the potential race conditions mentioned for `"auto"`. | ||
`"debug"` works like `"auto"` but after bundling, it will display a warning containing a list of ids that have been wrapped which can be used as picomatch pattern for fine-tuning or to avoid the potential race conditions mentioned for `"auto"`. | ||
@@ -109,3 +109,3 @@ ### `dynamicRequireTargets` | ||
A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should _ignore_. By default, all files with extensions other than those in `extensions` or `".cjs"` are ignored, but you can exclude additional files. See also the `include` option. | ||
A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should _ignore_. By default, all files with extensions other than those in `extensions` or `".cjs"` are ignored, but you can exclude additional files. See also the `include` option. | ||
@@ -117,3 +117,3 @@ ### `include` | ||
A [minimatch pattern](https://github.com/isaacs/minimatch), or array of patterns, which specifies the files in the build the plugin should operate on. By default, all files with extension `".cjs"` or those in `extensions` are included, but you can narrow this list by only including specific files. These files will be analyzed and transpiled if either the analysis does not find ES module specific statements or `transformMixedEsModules` is `true`. | ||
A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should operate on. By default, all files with extension `".cjs"` or those in `extensions` are included, but you can narrow this list by only including specific files. These files will be analyzed and transpiled if either the analysis does not find ES module specific statements or `transformMixedEsModules` is `true`. | ||
@@ -120,0 +120,0 @@ ### `extensions` |
@@ -9,3 +9,3 @@ import { FilterPattern } from '@rollup/pluginutils'; | ||
/** | ||
* A minimatch pattern, or array of patterns, which specifies the files in | ||
* A picomatch pattern, or array of patterns, which specifies the files in | ||
* the build the plugin should operate on. By default, all files with | ||
@@ -20,3 +20,3 @@ * extension `".cjs"` or those in `extensions` are included, but you can | ||
/** | ||
* A minimatch pattern, or array of patterns, which specifies the files in | ||
* A picomatch pattern, or array of patterns, which specifies the files in | ||
* the build the plugin should _ignore_. By default, all files with | ||
@@ -93,3 +93,3 @@ * extensions other than those in `extensions` or `".cjs"` are ignored, but you | ||
* | ||
* You can also provide a minimatch pattern, or array of patterns, to only | ||
* You can also provide a picomatch pattern, or array of patterns, to only | ||
* specify a subset of files which should be wrapped in functions for proper | ||
@@ -100,3 +100,3 @@ * `require` semantics. | ||
* containing a list of ids that have been wrapped which can be used as | ||
* minimatch pattern for fine-tuning. | ||
* picomatch pattern for fine-tuning. | ||
* @default "auto" | ||
@@ -103,0 +103,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7
177950
7
4282
+ Added@rollup/pluginutils@4.2.1(transitive)
+ Added@types/estree@1.0.5(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedmagic-string@0.26.7(transitive)
+ Addedminimatch@5.1.6(transitive)
+ Addedrollup@3.29.4(transitive)
- Removedresolve@^1.17.0
- Removed@rollup/pluginutils@3.1.0(transitive)
- Removed@types/estree@0.0.39(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedestree-walker@1.0.1(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedmagic-string@0.25.9(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedresolve@1.22.8(transitive)
- Removedrollup@2.79.1(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
Updated@rollup/pluginutils@^4.2.1
Updatedestree-walker@^2.0.2
Updatedglob@^8.0.3
Updatedis-reference@1.2.1
Updatedmagic-string@^0.26.4