Skip to content

Commit 94d4ad7

Browse files
Merge pull request #1029 from nodejs/main
Create a new pull request by comparing changes across two branches
2 parents d6737ab + 129ca9e commit 94d4ad7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+469
-252
lines changed

.github/workflows/coverage-linux-without-intl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Clean tmp
8080
run: rm -rf coverage/tmp && rm -rf out
8181
- name: Upload
82-
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
82+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
8383
with:
8484
directory: ./coverage
8585
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/coverage-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Clean tmp
8080
run: rm -rf coverage/tmp && rm -rf out
8181
- name: Upload
82-
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
82+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
8383
with:
8484
directory: ./coverage
8585
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/coverage-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Clean tmp
7272
run: npx rimraf ./coverage/tmp
7373
- name: Upload
74-
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
74+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
7575
with:
7676
directory: ./coverage
7777
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: Harden Runner
36-
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
36+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
3737
with:
3838
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
3939

@@ -73,6 +73,6 @@ jobs:
7373

7474
# Upload the results to GitHub's code scanning dashboard.
7575
- name: Upload to code-scanning
76-
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
76+
uses: github/codeql-action/upload-sarif@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
7777
with:
7878
sarif_file: results.sarif

benchmark/assert/deepequal-object.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ const common = require('../common.js');
44
const assert = require('assert');
55

66
const bench = common.createBenchmark(main, {
7-
n: [25, 2e2, 2e3],
8-
size: [1e2, 1e3, 1e4],
9-
strict: [1],
10-
method: ['deepEqual', 'notDeepEqual'],
7+
n: [25, 2e2],
8+
size: [1e2, 1e4],
9+
method: ['deepEqual', 'notDeepEqual', 'deepStrictEqual', 'notDeepStrictEqual'],
1110
}, {
1211
combinationFilter: (p) => {
1312
return p.size === 1e4 && p.n === 25 ||
@@ -30,10 +29,7 @@ function createObj(size, add = '') {
3029
}));
3130
}
3231

33-
function main({ size, n, method, strict }) {
34-
if (strict) {
35-
method = method.replace('eep', 'eepStrict');
36-
}
32+
function main({ size, n, method }) {
3733
const fn = assert[method];
3834

3935
const actual = createObj(size);

deps/amaro/dist/index.js

Lines changed: 73 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/amaro/dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"강동윤 <[email protected]>"
55
],
66
"description": "wasm module for swc",
7-
"version": "1.7.14",
7+
"version": "1.7.35",
88
"license": "Apache-2.0",
99
"repository": {
1010
"type": "git",

deps/amaro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amaro",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Node.js TypeScript wrapper",
55
"license": "MIT",
66
"type": "commonjs",

doc/api/buffer.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ changes:
688688
with. **Default:** `0`.
689689
* `encoding` {string} If `fill` is a string, this is its encoding.
690690
**Default:** `'utf8'`.
691+
* Returns: {Buffer}
691692

692693
Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the
693694
`Buffer` will be zero-filled.
@@ -782,6 +783,7 @@ changes:
782783
-->
783784

784785
* `size` {integer} The desired length of the new `Buffer`.
786+
* Returns: {Buffer}
785787

786788
Allocates a new `Buffer` of `size` bytes. If `size` is larger than
787789
[`buffer.constants.MAX_LENGTH`][] or smaller than 0, [`ERR_OUT_OF_RANGE`][]
@@ -852,6 +854,7 @@ changes:
852854
-->
853855

854856
* `size` {integer} The desired length of the new `Buffer`.
857+
* Returns: {Buffer}
855858

856859
Allocates a new `Buffer` of `size` bytes. If `size` is larger than
857860
[`buffer.constants.MAX_LENGTH`][] or smaller than 0, [`ERR_OUT_OF_RANGE`][]
@@ -1098,6 +1101,7 @@ added:
10981101
* `offset` {integer} The starting offset within `view`. **Default:**: `0`.
10991102
* `length` {integer} The number of elements from `view` to copy.
11001103
**Default:** `view.length - offset`.
1104+
* Returns: {Buffer}
11011105

11021106
Copies the underlying memory of `view` into a new `Buffer`.
11031107

@@ -1117,6 +1121,7 @@ added: v5.10.0
11171121
-->
11181122

11191123
* `array` {integer\[]}
1124+
* Returns: {Buffer}
11201125

11211126
Allocates a new `Buffer` using an `array` of bytes in the range `0``255`.
11221127
Array entries outside that range will be truncated to fit into it.
@@ -1159,6 +1164,7 @@ added: v5.10.0
11591164
* `byteOffset` {integer} Index of first byte to expose. **Default:** `0`.
11601165
* `length` {integer} Number of bytes to expose.
11611166
**Default:** `arrayBuffer.byteLength - byteOffset`.
1167+
* Returns: {Buffer}
11621168

11631169
This creates a view of the [`ArrayBuffer`][] without copying the underlying
11641170
memory. For example, when passed a reference to the `.buffer` property of a
@@ -1271,6 +1277,7 @@ added: v5.10.0
12711277

12721278
* `buffer` {Buffer|Uint8Array} An existing `Buffer` or [`Uint8Array`][] from
12731279
which to copy data.
1280+
* Returns: {Buffer}
12741281

12751282
Copies the passed `buffer` data onto a new `Buffer` instance.
12761283

@@ -1314,6 +1321,7 @@ added: v8.2.0
13141321
* `object` {Object} An object supporting `Symbol.toPrimitive` or `valueOf()`.
13151322
* `offsetOrEncoding` {integer|string} A byte-offset or encoding.
13161323
* `length` {integer} A length.
1324+
* Returns: {Buffer}
13171325

13181326
For objects whose `valueOf()` function returns a value not strictly equal to
13191327
`object`, returns `Buffer.from(object.valueOf(), offsetOrEncoding, length)`.
@@ -1372,6 +1380,7 @@ added: v5.10.0
13721380

13731381
* `string` {string} A string to encode.
13741382
* `encoding` {string} The encoding of `string`. **Default:** `'utf8'`.
1383+
* Returns: {Buffer}
13751384

13761385
Creates a new `Buffer` containing `string`. The `encoding` parameter identifies
13771386
the character encoding to be used when converting `string` into bytes.

doc/api/errors.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,17 @@ OpenSSL crypto support.
23302330
An attempt was made to use features that require [ICU][], but Node.js was not
23312331
compiled with ICU support.
23322332

2333+
<a id="ERR_NO_TYPESCRIPT"></a>
2334+
2335+
### `ERR_NO_TYPESCRIPT`
2336+
2337+
<!-- YAML
2338+
added: REPLACEME
2339+
-->
2340+
2341+
An attempt was made to use features that require [Native TypeScript support][], but Node.js was not
2342+
compiled with TypeScript support.
2343+
23332344
<a id="ERR_OPERATION_FAILED"></a>
23342345

23352346
### `ERR_OPERATION_FAILED`
@@ -4128,6 +4139,7 @@ An error occurred trying to allocate memory. This should never happen.
41284139
[ICU]: intl.md#internationalization-support
41294140
[JSON Web Key Elliptic Curve Registry]: https://www.iana.org/assignments/jose/jose.xhtml#web-key-elliptic-curve
41304141
[JSON Web Key Types Registry]: https://www.iana.org/assignments/jose/jose.xhtml#web-key-types
4142+
[Native TypeScript support]: typescript.md#type-stripping
41314143
[Node.js error codes]: #nodejs-error-codes
41324144
[Permission Model]: permissions.md#permission-model
41334145
[RFC 7230 Section 3]: https://tools.ietf.org/html/rfc7230#section-3

0 commit comments

Comments
 (0)