Skip to content

Commit

Permalink
chore(deps): Upgrade @types/node 20.12.7 to 20.17.10
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Dec 27, 2024
1 parent ebb85fe commit f5358f4
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 212 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@taplo/cli": "^0.7.0",
"@types/is-ci": "^3.0.4",
"@types/jest": "29.5.14",
"@types/node": "^20.12.7",
"@types/node": "^20.17.10",
"check-dependency-version-consistency": "^5.0.0",
"commander": "12.1.0",
"cross-env": "^7.0.3",
Expand Down
36 changes: 18 additions & 18 deletions packages/rspack/etc/core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7821,7 +7821,7 @@ export const rspackOptions: z.ZodObject<{
}, {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
}>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodObject<{
}>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBuffer>, z.ZodTypeDef, Buffer<ArrayBuffer>>, z.ZodObject<{
filename: z.ZodString;
module: z.ZodType<Module, z.ZodTypeDef, Module>;
}, "strict", z.ZodTypeAny, {
Expand All @@ -7841,7 +7841,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -7852,7 +7852,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -7868,7 +7868,7 @@ export const rspackOptions: z.ZodObject<{
}, {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
}>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer, z.ZodTypeDef, Buffer>, z.ZodObject<{
}>, z.ZodFunction<z.ZodTuple<[z.ZodType<Buffer<ArrayBuffer>, z.ZodTypeDef, Buffer<ArrayBuffer>>, z.ZodObject<{
filename: z.ZodString;
module: z.ZodType<Module, z.ZodTypeDef, Module>;
}, "strict", z.ZodTypeAny, {
Expand All @@ -7882,15 +7882,15 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
}, {
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand Down Expand Up @@ -7961,7 +7961,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -7983,7 +7983,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -8004,7 +8004,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -8026,7 +8026,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand Down Expand Up @@ -8152,7 +8152,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -8174,7 +8174,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand Down Expand Up @@ -8300,7 +8300,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -8322,7 +8322,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand Down Expand Up @@ -8469,7 +8469,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -8491,7 +8491,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand Down Expand Up @@ -9073,7 +9073,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand All @@ -9095,7 +9095,7 @@ export const rspackOptions: z.ZodObject<{
dataUrl?: {
encoding?: false | "base64" | undefined;
mimetype?: string | undefined;
} | ((args_0: Buffer, args_1: {
} | ((args_0: Buffer<ArrayBuffer>, args_1: {
module: Module;
filename: string;
}, ...args: unknown[]) => string) | undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/src/util/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RawSource, Source, SourceMapSource } from "webpack-sources";

class JsSource extends Source {
static __from_binding(source: JsCompatSourceOwned): Source {
if (source.source instanceof Buffer) {
if (Buffer.isBuffer(source.source)) {
// @ts-expect-error: webpack-sources can accept buffer as source,
// see: https://github.com/webpack/webpack-sources/blob/9f98066311d53a153fdc7c633422a1d086528027/lib/RawSource.js#L12
return new RawSource(source.source);
Expand Down
Loading

0 comments on commit f5358f4

Please sign in to comment.