Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ VERSION=v$(RAWVER)

.PHONY: doc-only
.NOTPARALLEL: doc-only
doc-only: $(apidoc_dirs) $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json out/doc/apilinks.json ## Builds the docs with the local or the global Node.js binary.
doc-only: $(apidoc_dirs) $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json out/doc/llms.txt out/doc/apilinks.json ## Builds the docs with the local or the global Node.js binary.

.PHONY: doc
doc: $(NODE_EXE) doc-only ## Build Node.js, and then build the documentation with the new binary.
Expand Down Expand Up @@ -901,6 +901,22 @@ $(apidocs_html) $(apidocs_json) out/doc/api/all.html out/doc/api/all.json &: $(a
fi
endif

out/doc/llms.txt: $(apidoc_sources) tools/doc/node_modules | out/doc
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping $@ (no crypto and/or no ICU)"; \
else \
$(call available-node, \
$(DOC_KIT) generate \
-t llms-txt \
-i doc/api/*.md \
--ignore $(skip_apidoc_files) \
-o $(@D) \
-c ./CHANGELOG.md \
-v $(VERSION) \
--type-map doc/type-map.json \
) \
fi

out/doc/apilinks.json: $(wildcard lib/*.js) tools/doc/node_modules | out/doc
@if [ "$(shell $(node_use_openssl_and_icu))" != "true" ]; then \
echo "Skipping $@ (no crypto and/or no ICU)"; \
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ When reporting security vulnerabilities, reporters must adhere to the following

4. **Report Quality**
* Provide clear, detailed steps to reproduce the vulnerability.
* Include reproducible code written in JavaScript.
* Include only the minimum proof of concept required to demonstrate the issue.
* Remove any malicious payloads or components that could cause harm.

Expand Down
9 changes: 3 additions & 6 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -1369,17 +1369,14 @@ port2.postMessage(new Foo());
// Prints: { c: 3 }
```

This limitation extends to many built-in objects, such as the global `URL`
object:
Some built-in objects cannot be cloned at all. For example, posting a
`URL` object throws a `DataCloneError`:

```js
const { port1, port2 } = new MessageChannel();

port1.onmessage = ({ data }) => console.log(data);

port2.postMessage(new URL('https://example.org'));

// Prints: { }
// Throws DataCloneError: Cannot clone object of unsupported type.
```

### `port.hasRef()`
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-webcrypto-crypto-job-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function withObjectPrototypeSetters(names, fn) {
{ name: 'AES-CBC', iv },
key,
Buffer.alloc(16)));
ciphertext[ciphertext.length - 1] ^= 0xff;
ciphertext[0] ^= 0xff;

await assert.rejects(
subtle.decrypt({ name: 'AES-CBC', iv }, key, ciphertext),
Expand Down
6 changes: 3 additions & 3 deletions tools/eslint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading