Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jscodeshift

Package Overview
Dependencies
Maintainers
5
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jscodeshift - npm Package Compare versions

Comparing version 0.15.0 to 0.15.1

11

CHANGELOG.md

@@ -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 @@

2

dist/Runner.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc