rspack icon indicating copy to clipboard operation
rspack copied to clipboard

chore(deps): update npm dev dependencies (major)

Open renovate[bot] opened this issue 1 year ago β€’ 5 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/node (source) ^18.11.18 -> ^22.0.0 age adoption passing confidence
@types/node (source) 20.12.7 -> 22.2.0 age adoption passing confidence
@​types/rimraf 3.0.2 -> 4.0.5 age adoption passing confidence
chalk ^4.1.0 -> ^5.0.0 age adoption passing confidence
coffee-loader ^1.0.0 -> ^5.0.0 age adoption passing confidence
copy-webpack-plugin 5.1.2 -> 12.0.2 age adoption passing confidence
css-loader ^6.11.0 -> ^7.0.0 age adoption passing confidence
execa ^5.0.0 -> ^9.0.0 age adoption passing confidence
glob ^10.3.10 -> ^11.0.0 age adoption passing confidence
internal-ip 6.2.0 -> 8.0.0 age adoption passing confidence
prettier-2 (source) 2.8.8 -> 3.3.3 age adoption passing confidence
rimraf 3.0.2 -> 6.0.1 age adoption passing confidence
style-loader ^3.3.3 -> ^4.0.0 age adoption passing confidence
zod-validation-error 1.3.1 -> 3.3.1 age adoption passing confidence
zx 7.2.3 -> 8.1.4 age adoption passing confidence

Release Notes

chalk/chalk (chalk)

v5.3.0

Compare Source

v5.2.0

Compare Source

v5.1.2

Compare Source

v5.1.1

Compare Source

  • Improved the names of exports introduced in 5.1.0 (#​567) 6e0df05
    • We of course preserved the old names.

v5.1.0

Compare Source

v5.0.1

Compare Source

  • Add main field to package.json for backwards compatibility with some developer tools 85f7e96

v5.0.0

Compare Source

Breaking
  • This package is now pure ESM. Please read this.
    • If you use TypeScript, you need to use TypeScript 4.7 or later. Why.
    • If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM.
    • The Chalk issue tracker is not a support channel for your favorite build/bundler tool.
    • It's totally fine to stay on Chalk v4. It's been stable for years.
  • Require Node.js 12.20 fa16f4e
  • Move some properties off the default export to individual named exports:
    • chalk.Instance β†’ Chalk
    • chalk.supportsColor β†’ supportsColor
    • chalk.stderr β†’ chalkStderr
    • chalk.stderr.supportsColor β†’ supportsColorStderr
  • Remove .keyword(), .hsl(), .hsv(), .hwb(), and .ansi() coloring methods (#​433) 4cf2e40
    • These were not commonly used and added a lot of bloat to Chalk. You can achieve the same by using the color-convert package.
  • The tagged template literal support moved into a separate package: chalk-template (#​524) c987c61
-import chalk from 'chalk';
+import chalkTemplate from 'chalk-template';

-chalk`2 + 3 = {bold ${2 + 3}}`;
+chalkTemplate`2 + 3 = {bold ${2 + 3}}`;
Improvements
webpack-contrib/coffee-loader (coffee-loader)

v5.0.0

Compare Source

⚠ BREAKING CHANGES

v4.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 14.15.0

v3.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 12.13.0

v2.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported webpack version is 5
1.0.1 (2020-10-09)
Chore
  • update schema-utils
1.0.0 (2020-05-22)
BREAKING CHANGES
  • minimum required Node.js version is 10.13.0
  • minimum required webpack version is 4.0.0
  • minimum required coffeescript version is 2.0.0
  • default value for the sourceMap option based on the value of the compiler.devtool option
Features
  • respect the compiler.devtool value for the sourceMap option
  • developer can override CoffeeScript options
Bug Fixes
  • fix error reporting
webpack-contrib/copy-webpack-plugin (copy-webpack-plugin)

v12.0.2

Compare Source

v12.0.1

Compare Source

v12.0.0

Compare Source

⚠ BREAKING CHANGES
  • update globby to 14.0.0
  • minimum supported Node.js version is 18.12.0 (#​759) (a5b7d06)

v11.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 14.15.0
build
10.2.4 (2022-01-31)
Bug Fixes
10.2.3 (2022-01-29)
Bug Fixes
10.2.2 (2022-01-28)
Bug Fixes
10.2.1 (2022-01-20)
Bug Fixes

v10.2.4

Compare Source

v10.2.3

Compare Source

v10.2.2

Compare Source

v10.2.1

Compare Source

v10.2.0

Compare Source

Features
  • removed cjs wrapper and generated types in commonjs format (export = and namespaces used in types), now you can directly use exported types (#​654) (5901006)

v10.1.0

Compare Source

Features
Bug Fixes

v10.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 12.20.0
  • update globby to 12.0.2 version

v9.1.0

Compare Source

Features
Bug Fixes
  • compatibility with Node.js 17 (20af0c7)
9.0.1 (2021-06-25)
Chore
  • update serialize-javascript

v9.0.1

Compare Source

v9.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 12.13.0
8.1.1 (2021-04-06)
Bug Fixes

v8.1.1

Compare Source

v8.1.0

Compare Source

Features

v8.0.0

Compare Source

⚠ BREAKING CHANGES
  • logic for some placeholders was changed:
    • [hash] and [fullhash] works as in webpack (i.e. it is hash of build, not content hash of file), to migrate change [name].[hash].[ext] to [name].[contenthash][ext]
    • [ext] doesn't require . (dot) before, i.e. change [name].[ext] to [name][ext]
    • [<hashType>:contenthash:<digestType>:<length>] and [<hashType>:hash:<digestType>:<length>] is not supported anymore, you can use output.hashDigest, output.hashDigestLength and output.hashFunction options to setup it
    • [N] was removed in favor of using the to option as a function
    • [folder] was removed
    • [emoji] was removed
Features

v7.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported webpack version is 5
  • the flatten option was removed in favor [name].[ext] value for the to option,
  • the transformPath option was removed in favor Function type of the to option, look at examples
  • the cacheTransform option was removed in favor Object type of the transform option, look at examples
  • migration on the compilation.hooks.processAssets hook
  • empty filtered paths throw an error, you can disable this behaviour using the noErrorOnMissing option

v6.4.1

Compare Source

6.4.1 (2020-12-16)
Bug Fixes

v6.4.0

Compare Source

Features
6.3.2 (2020-11-19)
Bug Fixes
6.3.1 (2020-11-13)
Bug Fixes

v6.3.2

Compare Source

v6.3.1

Compare Source

v6.3.0

Compare Source

Features
  • added the sourceFilename info (original source filename) to assets info (#​542) (db2e3bf)
  • persistent cache between compilations (webpack@5 only) (#​541) (c892451)
6.2.1 (2020-10-09)
Chore
  • update schema-utils

v6.2.1

Compare Source

v6.2.0

Compare Source

Features
6.1.1 (2020-09-18)
Chore
  • updated serialize-javascript

v6.1.1

Compare Source

v6.1.0

Compare Source

Features
  • added filter option (#​524) (1496f85)
  • added the copied flag to asset info (09b1dc9)
  • added the immutable flag to asset info with hash in name (#​525) (a1989d5)
  • webpack@5: improve stats output for copied files
6.0.4 (2020-08-29)
Bug Fixes
6.0.3 (2020-06-30)
Bug Fixes
  • do not execute on a child compiler (42f27c7)
6.0.2 (2020-06-03)
Bug Fixes
  • security problem
  • compatibility with 10.13 version of Node.js
6.0.1 (2020-05-16)
Bug Fixes

v6.0.4

Compare Source

v6.0.3

Compare Source

v6.0.2

Compare Source

v6.0.1

Compare Source

v6.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported Node.js version is 10.13,
  • the plugin now accepts an object, you should change new CopyPlugin(patterns, options) to new CopyPlugin({ patterns, options })
  • migrate on compilation.additionalAssets hook
  • the ignore option (which accepted micromatch syntax) was removed in favor globOptions.ignore (which accepts fast-glob pattern-syntax)
  • the test option was removed in favor the transformPath option
  • the cache option was renamed to the cacheTransform option, cacheTransform option should have only directory and keys properties when it is an object
  • global context and ignore options were removed in favor patten.context and pattern.globOptions.ignore options
  • the missing file error is now an error, before it was a warning
  • the from option now can only be a string, if you use { from: { glob: 'directory/**', dot: false } } changed it to { from: 'directory/**', globOptions: { dot: false } }
  • the copyUnmodified was removed without replacements
  • the 2 version of webpack-dev-server is not supported anymore
  • the logLevel was removed in favor the infrastructureLogging.level option, please read the documentation
Features
Bug Fixes
5.1.1 (2019-12-12)
Bug Fixes
webpack-contrib/css-loader (css-loader)

v7.1.2

Compare Source

v7.1.1

Compare Source

v7.1.0

Compare Source

Features

v7.0.0

Compare Source

⚠ BREAKING CHANGES
  • The modules.namedExport option is true by default if you enable the esModule option

Migration guide:

Before:

import style from "./style.css";

console.log(style.myClass);

After:

import * as style from "./style.css";

console.log(style.myClass);
  • The modules.exportLocalsConvention has the value as-is when the modules.namedExport option is true and you don't specify a value
  • Minimum supported webpack version is 5.27.0
  • Minimum supported Node.js version is 18.12.0
Features
  • The modules.namedExports option works fine with any modules.exportLocalsConvention values (f96a110)
  • Added dashed variants for the modules.exportLocalsConvention options (40e1668)
sindresorhus/execa (execa)

v9.3.0

Compare Source

Features

  • The verbose option can now be a function to customize logging. (#​1130)

v9.2.0

Compare Source

This release includes a new set of methods to exchange messages between the current process and a Node.js subprocess, also known as "IPC". This allows passing and returning almost any message type to/from a Node.js subprocess. Also, debugging IPC is now much easier.

Moreover, a new gracefulCancel option has also been added to terminate a subprocess gracefully.

For a deeper dive-in, please check and share the release post!

Thanks @​iiroj for your contribution, @​SimonSiefke and @​adymorz for reporting the bugs fixed in this release, and @​karlhorky for improving the documentation!

Deprecations

  • Passing 'ipc' to the stdio option has been deprecated. It will be removed in the next major release. Instead, the ipc: true option should be used. (#​1056)
- await execa('npm', ['run', 'build'], {stdio: ['pipe', 'pipe', 'pipe', 'ipc']});
+ await execa('npm', ['run', 'build'], {ipc: true});
  • The execaCommand() method has been deprecated. It will be removed in the next major release. If most cases, the template string syntax should be used instead.
- import {execaCommand} from 'execa';
+ import {execa} from 'execa';

- await execaCommand('npm run build');
+ await execa`npm run build`;

const taskName = 'build';
- await execaCommand(`npm run ${taskName}`);
+ await execa`npm run ${taskName}`;

const commandArguments = ['run', 'task with space'];
await execa`npm ${commandArguments}`;

If the file and/or multiple arguments are supplied as a single string, parseCommandString(command) can split that string into an array. More info. (#​1054)

- import {execaCommand} from 'execa';
+ import {execa, parseCommandString} from 'execa';

const commandString = 'npm run task';
- await execaCommand(commandString);
+ const commandArray = parseCommandString(commandString); // ['npm', 'run', 'task']
+ await execa`${commandArray}`;

// Or alternatively:
const [file, ...commandArguments] = commandArray;
await execa(file, commandArguments);

Features

  • Add gracefulCancel option and getCancelSignal() method to terminate a subprocess gracefully. error.isGracefullyCanceled was also added. (#​1109)
  • Add error.isForcefullyTerminated. It is true when the subprocess was terminated by the forceKillAfterDelay option. (#​1111)
  • New methods to simplify exchanging messages between the current process and the subprocess. More info. (#​1059, #​1061, #​1076, #​1077, #​1079, #​1082, #​1083, #​1086, #​1087, #​1088, #​1089, #​1090, #​1091, #​1092, #​1094, #​1095, #​1098, #​1104, #​1107)
    • The current process sends messages with subprocess.sendMessage(message) and receives them with subprocess.getOneMessage(). subprocess.getEachMessage() listens to multiple messages.
    • The subprocess uses sendMessage(message), getOneMessage() and getEachMessage() instead. Those are the same methods, but imported directly from the 'execa' module.
  • The ipcInput option sends an IPC message from the current process to the subprocess as it starts. This enables passing almost any input type to a Node.js subprocess. (#​1068)
  • The result.ipcOutput array contains all the IPC messages sent by the subprocess to the current process. This enables returning almost any output type from a Node.js subprocess. (#​1067, #​1071, #​1075)
  • The error message now contains every IPC message sent by the subprocess. (#​1067)
  • The verbose: 'full' option now logs every IPC message sent by the subprocess, for debugging. More info here and there. (#​1063)

Types

  • Add ExecaMethod, ExecaNodeMethod and ExecaScriptMethod, ExecaSyncMethod and ExecaScriptSyncMethod types. (#​1066)
  • Export the Message type, for IPC. (#​1059)
  • Fix type of forceKillAfterDelay: true option. (#​1116)

Bug fixes

  • Fix passing a {file} to both the stdin and the stdout or stderr options. (#​1058)
  • Fix multiple minor problems with the cancelSignal option. (#​1108)
  • Fix accidental publishing of Vim backup files. (#​1074)
  • Fix engines.node field in package.json. Supported Node.js version is ^18.19.0 or >=20.5.0. (by @​iiroj) (#​1101)

v9.1.0

Compare Source

Features (types)

v9.0.2

Compare Source

Bug fixes (types)

v9.0.1

Compare Source

Bug fixes (types)

v9.0.0

Compare Source

This major release brings many important features including:

Please check the release post for a high-level overview! For the full list of breaking changes, features and bug fixes, please read below.

Thanks @​younggglcy, @​koshic, @​am0o0 and @​codesmith-emmy for your help!


One of the maintainers @​ehmicky is looking for a remote full-time position. Specialized in Node.js back-ends and CLIs, he led Netlify Build, Plugins and Configuration for 2.5 years. Feel free to contact him on his website or on LinkedIn!


Breaking changes

const {stdout} = await execa('node', ['file.js'], {encoding: 'buffer'});
console.log(stdout); // This is now an Uint8Array
- await execa('node', ['file.js'], {encoding: null});
+ await execa('node', ['file.js'], {encoding: 'buffer'});

- await execa('node', ['file.js'], {encoding: 'utf-8'});
+ await execa('node', ['file.js'], {encoding: 'utf8'});

- await execa('node', ['file.js'], {encoding: 'UTF8'});
+ await execa('node', ['file.js'], {encoding: 'utf8'});

- await execa('node', ['file.js'], {encoding: 'utf-16le'});
+ await execa('node', ['file.js'], {encoding: 'utf16le'});

- await execa('node', ['file.js'], {encoding: 'ucs2'});
+ await execa('node', ['file.js'], {encoding: 'utf16le'});

- await execa('node', ['file.js'], {encoding: 'ucs-2'});
+ await execa('node', ['file.js'], {encoding: 'utf16le'});

- await execa('node', ['file.js'], {encoding: 'binary'});
+ await execa('node', ['file.js'], {encoding: 'latin1'});
  • Passing a file path to subprocess.pipeStdout(), subprocess.pipeStderr() and subprocess.pipeAll() has been removed. Instead, a {file: './path'} object should be passed to the stdout or stderr option. (#​752)
- await execa('node', ['file.js']).pipeStdout('output.txt');
+ await execa('node', ['file.js'], {stdout: {file: 'output.txt'}});

- await execa('node', ['file.js']).pipeStderr('output.txt');
+ await execa('node', ['file.js'], {stderr: {file: 'output.txt'}});

- await execa('node', ['file.js']).pipeAll('output.txt');
+ await execa('node', ['file.js'], {
+	stdout: {file: 'output.txt'},
+	stderr: {file: 'output.txt'},
+});
  • Passing a writable stream to subprocess.pipeStdout(), subprocess.pipeStderr() and subprocess.pipeAll() has been removed. Instead, the stream should be passed to the stdout or stderr option. If the stream does not have a file descriptor, ['pipe', stream] should be passed instead. (#​752)
- await execa('node', ['file.js']).pipeStdout(stream);
+ await execa('node', ['file.js'], {stdout: ['pipe', stream]});

- await execa('node', ['file.js']).pipeStderr(stream);
+ await execa('node', ['file.js'], {stderr: ['pipe', stream]});

- await execa('node', ['file.js']).pipeAll(stream);
+ await execa('node', ['file.js'], {
+	stdout: ['pipe', stream],
+	stderr: ['pipe', stream],
+});
  • The subprocess.pipeStdout(), subprocess.pipeStderr() and subprocess.pipeAll() methods have been renamed to subprocess.pipe(). The command and its arguments can be passed to subprocess.pipe() directly, without calling execa() a second time. The from piping option can specify 'stdout' (the default value), 'stderr' or 'all'. (#​757)
- await execa('node', ['file.js']).pipeStdout(execa('node', ['other.js']));
+ await execa('node', ['file.js']).pipe('node', ['other.js']);

- await execa('node',

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - "before 8am on wednesday" in timezone Asia/Shanghai, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

β™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ‘» **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/web-infra-dev/rspack).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMDAuMCIsInVwZGF0ZWRJblZlciI6IjM4LjIwLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

renovate[bot] avatar Feb 20 '24 16:02 renovate[bot]

Need to fix or ignore some of these breaking changes

Boshen avatar Feb 21 '24 05:02 Boshen

rimraf:

v4 to v5 There is no default export anymore. Import the functions directly using, e.g., import { rimrafSync } from 'rimraf.

Boshen avatar Feb 27 '24 08:02 Boshen

invalid rimraf options

Boshen avatar Feb 27 '24 11:02 Boshen

execa and internal-ip are esm only.

copy-webpack-plugin and sass-loader breaks.

Boshen avatar Feb 29 '24 08:02 Boshen

Deploy Preview for rspack ready!

Name Link
Latest commit 42c598ee4e2dd15a5f22ad296f967c85219c5000
Latest deploy log https://app.netlify.com/sites/rspack/deploys/66c55de6b168d100089ce0b7
Deploy Preview https://deploy-preview-5728--rspack.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar May 15 '24 04:05 netlify[bot]