Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies (major) (major) #417

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 10, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@sindresorhus/slugify 1.1.2 -> 2.2.1 age adoption passing confidence
chalk 4.1.2 -> 5.3.0 age adoption passing confidence
execa 5.1.1 -> 9.0.0 age adoption passing confidence
husky 7.0.4 -> 9.0.11 age adoption passing confidence
node-fetch 2.7.0 -> 3.3.2 age adoption passing confidence
prettier (source) 2.8.8 -> 3.2.5 age adoption passing confidence
typescript (source) 4.9.5 -> 5.4.5 age adoption passing confidence

Release Notes

sindresorhus/slugify (@​sindresorhus/slugify)

v2.2.1

Compare Source

  • Improve compatibility with partial strings

v2.2.0

Compare Source

v2.1.1

Compare Source

v2.1.0

Compare Source

v2.0.0

Compare Source

Breaking
  • Require Node.js 12 12498c9
  • This package is now pure ESM. Please read this.
  • slugify.counter moved to a named export slugifyWithCounter
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.InstanceChalk
    • chalk.supportsColorsupportsColor
    • chalk.stderrchalkStderr
    • chalk.stderr.supportsColorsupportsColorStderr
  • 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
sindresorhus/execa (execa)

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'},
+});
- 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', ['file.js']).pipeStderr(execa('node', ['other.js']));
+ await execa('node', ['file.js']).pipe('node', ['other.js'], {from: 'stderr'});

- await execa('node', ['file.js']).pipeAll(execa('node', ['other.js']));
+ await execa('node', ['file.js']).pipe('node', ['other.js'], {from: 'all'});
- await execa('node', ['file.js'], {signal: abortController.signal});
+ await execa('node', ['file.js'], {cancelSignal: abortController.signal});
try {
	await execa('node', ['file.js']);
} catch (error) {
- if (error.killed) {
+ if (error.isTerminated) {
		// ...
	}
}
- subprocess.cancel();
+ subprocess.kill();
- const subprocess = execa('node', ['file.js']);
- subprocess.kill('SIGTERM', {forceKillAfterTimeout: 1000});
+ const subprocess = execa('node', ['file.js'], {forceKillAfterDelay: 1000});
+ subprocess.kill('SIGTERM');
  • The verbose option is now a string enum instead of a boolean. false has been renamed to 'none' and true has been renamed to 'short'. (#​884)
- await execa('node', ['file.js'], {verbose: false});
+ await execa('node', ['file.js'], {verbose: 'none'});

- await execa('node', ['file.js'], {verbose: true});
+ await execa('node', ['file.js'], {verbose: 'short'});
- await execa('node', ['file.js'], {execPath: './path/to/node'});
+ await execa('node', ['file.js'], {nodePath: './path/to/node'});
- subprocess.send({example: true, getExample() {}});
+ subprocess.send({example: true});
const subprocess = execa('node', ['file.js']);
- setTimeout(() => {
	subprocess.stdout.pipe(process.stdout);
- }, 0);
- const subprocess = execa('node', ['file.js'], {killSignal: 'sigterm'});
+ const subprocess = execa('node', ['file.js'], {killSignal: 'SIGTERM'});

- subprocess.kill('sigterm');
+ subprocess.kill('SIGTERM');

Features

Execution
Text lines
Piping multiple subprocesses
Input/output
Streams
Verbose mode
Debugging
Errors
Termination
Node.js files
Synchronous execution
Inter-process communication
Input validation

Bug fixes

Types (breaking changes)

import type {Options} from 'execa';

- const options: CommonOptions = {timeout: 1000};
+ const options: Options = {timeout: 1000};
import type {Options} from 'execa';

- const options: NodeOptions = {nodeOptions: ['--no-warnings']};
+ const options: Options = {nodeOptions: ['--no-warnings']};
import type {Options} from 'execa';

- const options: KillOptions = {forceKillAfterTimeout: 1000};
+ const options: Options = {forceKillAfterDelay: 1000};
import type {Options} from 'execa';

- const options: Options<'utf8'> = {encoding: 'utf8'};
+ const options: Options = {encoding: 'utf8'};
import type {ResultPromise, Result} from 'execa';

- const promiseOrSubprocess: ExecaChildProcess = execa('node', ['file.js']);
+ const promiseOrSubprocess: ResultPromise = execa('node', ['file.js']);
const result: Result = await promiseOrSubprocess;
promiseOrSubprocess.kill();
import type {Subprocess} from 'execa';

- const subprocess: ExecaChildPromise = execa('node', ['file.js']);
+ const subprocess: Subprocess = execa('node', ['file.js']);
subprocess.kill();
import type {Result, SyncResult} from 'execa';

- const result: ExecaReturnBase = await execa('node', ['file.js']);
+ const result: Result = await execa('node', ['file.js']);

- const result: ExecaReturnValue = await execa('node', ['file.js']);
+ const result: Result = await execa('node', ['file.js']);

- const result: ExecaSyncReturnValue = execaSync('node', ['file.js']);
+ const result: SyncResult = execaSync('node', ['file.js']);
import {execa, type StdinOption} from 'execa';

- const stdin: StdioOption = 'inherit';
+ const stdin: StdinOption = 'inherit';
await execa('node', ['file.js'], {stdin});
import {execa, type StdoutStderrOption} from 'execa';

- const stdout: StdioOption = 'inherit';
+ const stdout: StdoutStderrOption = 'inherit';
- const stderr: StdioOption = 'inherit';
+ const stderr: StdoutStderrOption = 'inherit';
await execa('node', ['file.js'], {stdout, stderr});
import {execa, type Options} from 'execa';

- const stdio: readonly StdioOption[] = ['inherit', 'pipe', 'pipe'] as const;
+ const stdio: Options['stdio'] = ['inherit', 'pipe', 'pipe'] as const;
await execa('node', ['file.js'], {stdio});
import type {Result} from 'execa';

- const result: ExecaReturnValue<Buffer> = await execa('node', ['file.js'], {encoding: 'buffer'});
+ const result: Result<{encoding: 'buffer'}> = await execa('node', ['file.js'], {encoding: 'buffer'});
// Or even better, since it is inferred:
+ const result: Result = await execa('node', ['file.js'], {encoding: 'buffer'});

Types (improvements)

Documentation


Configuration

📅 Schedule: Branch creation - "before 8am on Wednesday" (UTC), 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 if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title chore(deps): update dependencies (major) to v2 (major) chore(deps): update dependencies (major) (major) Aug 10, 2022
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 2 times, most recently from bcde24f to c94b05a Compare August 24, 2022 06:45
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from c94b05a to dd46f4a Compare September 7, 2022 07:47
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 3 times, most recently from d6d30b2 to 3736e6f Compare September 29, 2022 08:21
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 4 times, most recently from 0666dff to c6b8cc9 Compare October 12, 2022 07:30
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 2 times, most recently from 82671fe to 254aaf1 Compare October 12, 2022 17:50
Jolg42

This comment was marked as outdated.

@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from 254aaf1 to 8f82419 Compare October 26, 2022 13:10
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 2 times, most recently from ab732aa to 8f50102 Compare November 10, 2022 23:00
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from 8f50102 to b3d2cea Compare November 23, 2022 08:59
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 2 times, most recently from d3eb6bc to dcc7e4a Compare December 14, 2022 15:28
@renovate renovate bot changed the title chore(deps): update dependencies (major) (major) Update dependencies (major) (major) Dec 17, 2022
@renovate renovate bot changed the title Update dependencies (major) (major) chore(deps): update dependencies (major) (major) Dec 17, 2022
@renovate renovate bot changed the title chore(deps): update dependencies (major) (major) Update dependencies (major) (major) Dec 19, 2022
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from dcc7e4a to 1ad8453 Compare January 3, 2023 09:35
@renovate renovate bot changed the title Update dependencies (major) (major) chore(deps): update dependencies (major) (major) Jan 4, 2023
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 2 times, most recently from 18d9e15 to 8ebdfd1 Compare January 18, 2023 08:08
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 3 times, most recently from 44c0bda to cc3cb42 Compare January 17, 2024 10:23
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 6 times, most recently from ffb52dd to 8e1ed08 Compare January 29, 2024 14:36
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 4 times, most recently from fab1afd to f149859 Compare February 4, 2024 08:14
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 3 times, most recently from 1d95550 to 8a5b8b1 Compare February 14, 2024 09:23
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 3 times, most recently from 8046fd2 to 85ceef9 Compare March 13, 2024 10:09
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from 85ceef9 to 9457491 Compare March 20, 2024 09:01
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from 9457491 to b428083 Compare March 20, 2024 20:10
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch 2 times, most recently from 42507aa to 35a96f1 Compare April 4, 2024 18:35
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from 35a96f1 to 2528f04 Compare April 10, 2024 17:39
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from 2528f04 to d065cc4 Compare May 7, 2024 07:15
@renovate renovate bot force-pushed the renovate/major-dependencies-(major) branch from d065cc4 to 56457d5 Compare May 8, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech/typescript Issue for tech TypeScript. topic: tech debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant