@@ -621,6 +621,13 @@ if (isMainThread) {
621
621
<!-- YAML
622
622
added: v10.5.0
623
623
changes:
624
+ - version: REPLACEME
625
+ pr-url: https://github.com/nodejs/node/pull/34584
626
+ description: The `filename` parameter can be a WHATWG `URL` object using
627
+ `data:` protocol.
628
+ - version: REPLACEME
629
+ pr-url: https://github.com/nodejs/node/pull/34394
630
+ description: The `trackUnmanagedFds` option was set to `true` by default.
624
631
- version:
625
632
- v14.6.0
626
633
pr-url: https://github.com/nodejs/node/pull/34303
@@ -647,7 +654,9 @@ changes:
647
654
* ` filename ` {string|URL} The path to the Worker’s main script or module. Must
648
655
be either an absolute path or a relative path (i.e. relative to the
649
656
current working directory) starting with ` ./ ` or ` ../ ` , or a WHATWG ` URL `
650
- object using ` file: ` protocol.
657
+ object using ` file: ` or ` data: ` protocol.
658
+ When using a [ ` data: ` URL] [ ] , the data is interpreted based on MIME type using
659
+ the [ ECMAScript module loader] [ ] .
651
660
If ` options.eval ` is ` true ` , this is a string containing JavaScript code
652
661
rather than a path.
653
662
* ` options ` {Object}
@@ -893,6 +902,7 @@ active handle in the event system. If the worker is already `unref()`ed calling
893
902
[ `AsyncResource` ] : async_hooks.html#async_hooks_class_asyncresource
894
903
[ `Buffer` ] : buffer.html
895
904
[ `Buffer.allocUnsafe()` ] : buffer.html#buffer_static_method_buffer_allocunsafe_size
905
+ [ ECMAScript module loader ] : esm.html#esm_data_imports
896
906
[ `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` ] : errors.html#errors_err_missing_message_port_in_transfer_list
897
907
[ `ERR_WORKER_NOT_RUNNING` ] : errors.html#ERR_WORKER_NOT_RUNNING
898
908
[ `EventEmitter` ] : events.html
@@ -944,3 +954,4 @@ active handle in the event system. If the worker is already `unref()`ed calling
944
954
[ child processes ] : child_process.html
945
955
[ contextified ] : vm.html#vm_what_does_it_mean_to_contextify_an_object
946
956
[ v8.serdes ] : v8.html#v8_serialization_api
957
+ [ `data:` URL ] : https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs
0 commit comments