jscodeshift
Advanced tools
Comparing version 0.15.0 to 0.15.1
@@ -10,2 +10,13 @@ # Changelog | ||
## [0.15.1] 2023-10-28 | ||
### Changed | ||
- Upgraded to recast 0.23.3 (#564, @ashsearle) | ||
- Enable `@babel/plugin-proposal-private-methods` in worker (#568, @sibelius) | ||
- Upgraded Babel packages (#570, @dartess) | ||
### Fixed | ||
- Respect extensions cli option when filtering individual files (#562, @robcmills) | ||
- Fixed unit test after #562 broke them (#575, @ElonVolo) | ||
## [0.15.0] 2023-05-07 | ||
@@ -12,0 +23,0 @@ |
@@ -151,3 +151,3 @@ | ||
); | ||
} else if (ignores.shouldIgnore(file)) { | ||
} else if (!filter(file) || ignores.shouldIgnore(file)) { | ||
// ignoring the file | ||
@@ -154,0 +154,0 @@ resolve([]); |
@@ -151,3 +151,3 @@ | ||
); | ||
} else if (ignores.shouldIgnore(file)) { | ||
} else if (!filter(file) || ignores.shouldIgnore(file)) { | ||
// ignoring the file | ||
@@ -154,0 +154,0 @@ resolve([]); |
@@ -74,6 +74,7 @@ | ||
plugins: [ | ||
require('@babel/plugin-proposal-class-properties').default, | ||
require('@babel/plugin-proposal-nullish-coalescing-operator').default, | ||
require('@babel/plugin-proposal-optional-chaining').default, | ||
require('@babel/plugin-transform-class-properties').default, | ||
require('@babel/plugin-transform-nullish-coalescing-operator').default, | ||
require('@babel/plugin-transform-optional-chaining').default, | ||
require('@babel/plugin-transform-modules-commonjs').default, | ||
require('@babel/plugin-transform-private-methods').default, | ||
], | ||
@@ -80,0 +81,0 @@ extensions: [...DEFAULT_EXTENSIONS, '.ts', '.tsx'], |
@@ -74,6 +74,7 @@ | ||
plugins: [ | ||
require('@babel/plugin-proposal-class-properties').default, | ||
require('@babel/plugin-proposal-nullish-coalescing-operator').default, | ||
require('@babel/plugin-proposal-optional-chaining').default, | ||
require('@babel/plugin-transform-class-properties').default, | ||
require('@babel/plugin-transform-nullish-coalescing-operator').default, | ||
require('@babel/plugin-transform-optional-chaining').default, | ||
require('@babel/plugin-transform-modules-commonjs').default, | ||
require('@babel/plugin-transform-private-methods').default, | ||
], | ||
@@ -80,0 +81,0 @@ extensions: [...DEFAULT_EXTENSIONS, '.ts', '.tsx'], |
{ | ||
"name": "jscodeshift", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "A toolkit for JavaScript codemods", | ||
@@ -12,2 +12,3 @@ "repository": { | ||
"scripts": { | ||
"test": "jest --bail", | ||
@@ -27,11 +28,12 @@ "docs": "rm -rf docs && jsdoc -d docs -R README.md src/collections/* src/core.js src/Collection.js" | ||
"dependencies": { | ||
"@babel/core": "^7.13.16", | ||
"@babel/parser": "^7.13.16", | ||
"@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8", | ||
"@babel/plugin-proposal-optional-chaining": "^7.13.12", | ||
"@babel/plugin-transform-modules-commonjs": "^7.13.8", | ||
"@babel/preset-flow": "^7.13.13", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@babel/register": "^7.13.16", | ||
"@babel/core": "^7.23.0", | ||
"@babel/parser": "^7.23.0", | ||
"@babel/plugin-transform-class-properties": "^7.22.5", | ||
"@babel/plugin-transform-modules-commonjs": "^7.23.0", | ||
"@babel/plugin-transform-nullish-coalescing-operator": "^7.22.11", | ||
"@babel/plugin-transform-optional-chaining": "^7.23.0", | ||
"@babel/plugin-transform-private-methods": "^7.22.5", | ||
"@babel/preset-flow": "^7.22.15", | ||
"@babel/preset-typescript": "^7.23.0", | ||
"@babel/register": "^7.22.15", | ||
"babel-core": "^7.0.0-bridge.0", | ||
@@ -44,3 +46,3 @@ "chalk": "^4.1.2", | ||
"node-dir": "^0.1.17", | ||
"recast": "^0.23.1", | ||
"recast": "^0.23.3", | ||
"temp": "^0.8.4", | ||
@@ -47,0 +49,0 @@ "write-file-atomic": "^2.3.0" |
@@ -151,3 +151,3 @@ | ||
); | ||
} else if (ignores.shouldIgnore(file)) { | ||
} else if (!filter(file) || ignores.shouldIgnore(file)) { | ||
// ignoring the file | ||
@@ -154,0 +154,0 @@ resolve([]); |
@@ -74,6 +74,7 @@ | ||
plugins: [ | ||
require('@babel/plugin-proposal-class-properties').default, | ||
require('@babel/plugin-proposal-nullish-coalescing-operator').default, | ||
require('@babel/plugin-proposal-optional-chaining').default, | ||
require('@babel/plugin-transform-class-properties').default, | ||
require('@babel/plugin-transform-nullish-coalescing-operator').default, | ||
require('@babel/plugin-transform-optional-chaining').default, | ||
require('@babel/plugin-transform-modules-commonjs').default, | ||
require('@babel/plugin-transform-private-methods').default, | ||
], | ||
@@ -80,0 +81,0 @@ extensions: [...DEFAULT_EXTENSIONS, '.ts', '.tsx'], |
@@ -16,5 +16,5 @@ | ||
function renameFileTo(oldPath, newFilename) { | ||
function renameFileTo(oldPath, newFilename, extension = '') { | ||
const projectPath = path.dirname(oldPath); | ||
const newPath = path.join(projectPath, newFilename); | ||
const newPath = path.join(projectPath, newFilename + extension); | ||
mkdirp.sync(path.dirname(newPath)); | ||
@@ -31,3 +31,3 @@ fs.renameSync(oldPath, newPath); | ||
if (filename) { | ||
filePath = renameFileTo(filePath, filename); | ||
filePath = renameFileTo(filePath, filename, extension); | ||
} | ||
@@ -34,0 +34,0 @@ return filePath; |
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
7396
264117
21
73
+ Added@babel/plugin-transform-nullish-coalescing-operator@^7.22.11
+ Addedcaniuse-lite@1.0.30001679(transitive)
+ Addedelectron-to-chromium@1.5.55(transitive)
+ Addedflow-parser@0.252.0(transitive)
- Removed@babel/plugin-proposal-nullish-coalescing-operator@^7.13.8
- Removed@babel/plugin-proposal-class-properties@7.18.6(transitive)
- Removed@babel/plugin-proposal-nullish-coalescing-operator@7.18.6(transitive)
- Removed@babel/plugin-proposal-optional-chaining@7.21.0(transitive)
- Removed@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(transitive)
- Removed@babel/plugin-syntax-optional-chaining@7.8.3(transitive)
- Removedcaniuse-lite@1.0.30001677(transitive)
- Removedelectron-to-chromium@1.5.50(transitive)
- Removedflow-parser@0.251.1(transitive)
Updated@babel/core@^7.23.0
Updated@babel/parser@^7.23.0
Updated@babel/preset-flow@^7.22.15
Updated@babel/register@^7.22.15
Updatedrecast@^0.23.3