diff options
-rw-r--r-- | Cargo.toml | 16 | ||||
-rw-r--r-- | cli/dts/lib.deno.window.d.ts | 4 | ||||
-rw-r--r-- | cli/dts/lib.deno.worker.d.ts | 4 | ||||
-rw-r--r-- | cli/tests/error_009_extensions_error.js (renamed from cli/tests/error_009_op_crates_error.js) | 0 | ||||
-rw-r--r-- | cli/tests/error_009_extensions_error.js.out (renamed from cli/tests/error_009_op_crates_error.js.out) | 2 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 6 | ||||
-rw-r--r-- | cli/tests/unit/metrics_test.ts | 2 | ||||
-rw-r--r-- | core/extensions.rs | 2 | ||||
-rw-r--r-- | extensions/console/01_colors.js (renamed from op_crates/console/01_colors.js) | 0 | ||||
-rw-r--r-- | extensions/console/02_console.js (renamed from op_crates/console/02_console.js) | 6 | ||||
-rw-r--r-- | extensions/console/Cargo.toml (renamed from op_crates/console/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/console/README.md (renamed from op_crates/console/README.md) | 0 | ||||
-rw-r--r-- | extensions/console/lib.deno_console.d.ts (renamed from op_crates/console/lib.deno_console.d.ts) | 0 | ||||
-rw-r--r-- | extensions/console/lib.rs (renamed from op_crates/console/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/crypto/01_crypto.js (renamed from op_crates/crypto/01_crypto.js) | 0 | ||||
-rw-r--r-- | extensions/crypto/Cargo.toml (renamed from op_crates/crypto/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/crypto/README.md (renamed from op_crates/crypto/README.md) | 0 | ||||
-rw-r--r-- | extensions/crypto/lib.deno_crypto.d.ts (renamed from op_crates/crypto/lib.deno_crypto.d.ts) | 0 | ||||
-rw-r--r-- | extensions/crypto/lib.rs (renamed from op_crates/crypto/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/fetch/01_fetch_util.js (renamed from op_crates/fetch/01_fetch_util.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/11_streams.js (renamed from op_crates/fetch/11_streams.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/11_streams_types.d.ts (renamed from op_crates/fetch/11_streams_types.d.ts) | 0 | ||||
-rw-r--r-- | extensions/fetch/20_headers.js (renamed from op_crates/fetch/20_headers.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/21_formdata.js (renamed from op_crates/fetch/21_formdata.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/22_body.js (renamed from op_crates/fetch/22_body.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/22_http_client.js (renamed from op_crates/fetch/22_http_client.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/23_request.js (renamed from op_crates/fetch/23_request.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/23_response.js (renamed from op_crates/fetch/23_response.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/26_fetch.js (renamed from op_crates/fetch/26_fetch.js) | 0 | ||||
-rw-r--r-- | extensions/fetch/Cargo.toml (renamed from op_crates/fetch/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/fetch/README.md (renamed from op_crates/fetch/README.md) | 0 | ||||
-rw-r--r-- | extensions/fetch/internal.d.ts (renamed from op_crates/fetch/internal.d.ts) | 0 | ||||
-rw-r--r-- | extensions/fetch/lib.deno_fetch.d.ts (renamed from op_crates/fetch/lib.deno_fetch.d.ts) | 0 | ||||
-rw-r--r-- | extensions/fetch/lib.rs (renamed from op_crates/fetch/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/file/01_file.js (renamed from op_crates/file/01_file.js) | 0 | ||||
-rw-r--r-- | extensions/file/02_filereader.js (renamed from op_crates/file/02_filereader.js) | 0 | ||||
-rw-r--r-- | extensions/file/03_blob_url.js (renamed from op_crates/file/03_blob_url.js) | 0 | ||||
-rw-r--r-- | extensions/file/Cargo.toml (renamed from op_crates/file/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/file/README.md (renamed from op_crates/file/README.md) | 0 | ||||
-rw-r--r-- | extensions/file/internal.d.ts (renamed from op_crates/file/internal.d.ts) | 0 | ||||
-rw-r--r-- | extensions/file/lib.deno_file.d.ts (renamed from op_crates/file/lib.deno_file.d.ts) | 0 | ||||
-rw-r--r-- | extensions/file/lib.rs (renamed from op_crates/file/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/timers/01_timers.js (renamed from op_crates/timers/01_timers.js) | 2 | ||||
-rw-r--r-- | extensions/timers/Cargo.toml (renamed from op_crates/timers/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/timers/README.md (renamed from op_crates/timers/README.md) | 0 | ||||
-rw-r--r-- | extensions/timers/lib.rs (renamed from op_crates/timers/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/url/00_url.js (renamed from op_crates/url/00_url.js) | 0 | ||||
-rw-r--r-- | extensions/url/Cargo.toml (renamed from op_crates/url/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/url/README.md (renamed from op_crates/url/README.md) | 0 | ||||
-rw-r--r-- | extensions/url/benches/url_ops.rs (renamed from op_crates/url/benches/url_ops.rs) | 0 | ||||
-rw-r--r-- | extensions/url/internal.d.ts (renamed from op_crates/url/internal.d.ts) | 0 | ||||
-rw-r--r-- | extensions/url/lib.deno_url.d.ts (renamed from op_crates/url/lib.deno_url.d.ts) | 0 | ||||
-rw-r--r-- | extensions/url/lib.rs (renamed from op_crates/url/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/web/00_infra.js (renamed from op_crates/web/00_infra.js) | 0 | ||||
-rw-r--r-- | extensions/web/01_dom_exception.js (renamed from op_crates/web/01_dom_exception.js) | 0 | ||||
-rw-r--r-- | extensions/web/01_mimesniff.js (renamed from op_crates/web/01_mimesniff.js) | 0 | ||||
-rw-r--r-- | extensions/web/02_event.js (renamed from op_crates/web/02_event.js) | 0 | ||||
-rw-r--r-- | extensions/web/03_abort_signal.js (renamed from op_crates/web/03_abort_signal.js) | 0 | ||||
-rw-r--r-- | extensions/web/04_global_interfaces.js (renamed from op_crates/web/04_global_interfaces.js) | 0 | ||||
-rw-r--r-- | extensions/web/08_text_encoding.js (renamed from op_crates/web/08_text_encoding.js) | 0 | ||||
-rw-r--r-- | extensions/web/12_location.js (renamed from op_crates/web/12_location.js) | 0 | ||||
-rw-r--r-- | extensions/web/Cargo.toml (renamed from op_crates/web/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/web/README.md (renamed from op_crates/web/README.md) | 0 | ||||
-rw-r--r-- | extensions/web/internal.d.ts (renamed from op_crates/web/internal.d.ts) | 0 | ||||
-rw-r--r-- | extensions/web/lib.deno_web.d.ts (renamed from op_crates/web/lib.deno_web.d.ts) | 0 | ||||
-rw-r--r-- | extensions/web/lib.rs (renamed from op_crates/web/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/webgpu/01_webgpu.js (renamed from op_crates/webgpu/01_webgpu.js) | 0 | ||||
-rw-r--r-- | extensions/webgpu/02_idl_types.js (renamed from op_crates/webgpu/02_idl_types.js) | 0 | ||||
-rw-r--r-- | extensions/webgpu/Cargo.toml (renamed from op_crates/webgpu/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/webgpu/README.md (renamed from op_crates/webgpu/README.md) | 0 | ||||
-rw-r--r-- | extensions/webgpu/binding.rs (renamed from op_crates/webgpu/binding.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/buffer.rs (renamed from op_crates/webgpu/buffer.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/bundle.rs (renamed from op_crates/webgpu/bundle.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/command_encoder.rs (renamed from op_crates/webgpu/command_encoder.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/compute_pass.rs (renamed from op_crates/webgpu/compute_pass.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/error.rs (renamed from op_crates/webgpu/error.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/lib.deno_webgpu.d.ts (renamed from op_crates/webgpu/lib.deno_webgpu.d.ts) | 0 | ||||
-rw-r--r-- | extensions/webgpu/lib.rs (renamed from op_crates/webgpu/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/webgpu/pipeline.rs (renamed from op_crates/webgpu/pipeline.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/queue.rs (renamed from op_crates/webgpu/queue.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/render_pass.rs (renamed from op_crates/webgpu/render_pass.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/sampler.rs (renamed from op_crates/webgpu/sampler.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/shader.rs (renamed from op_crates/webgpu/shader.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/texture.rs (renamed from op_crates/webgpu/texture.rs) | 0 | ||||
-rw-r--r-- | extensions/webgpu/webgpu.idl (renamed from op_crates/webgpu/webgpu.idl) | 0 | ||||
-rw-r--r-- | extensions/webidl/00_webidl.js (renamed from op_crates/webidl/00_webidl.js) | 0 | ||||
-rw-r--r-- | extensions/webidl/Cargo.toml (renamed from op_crates/webidl/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/webidl/README.md (renamed from op_crates/webidl/README.md) | 0 | ||||
-rw-r--r-- | extensions/webidl/internal.d.ts (renamed from op_crates/webidl/internal.d.ts) | 0 | ||||
-rw-r--r-- | extensions/webidl/lib.rs (renamed from op_crates/webidl/lib.rs) | 2 | ||||
-rw-r--r-- | extensions/websocket/01_websocket.js (renamed from op_crates/websocket/01_websocket.js) | 0 | ||||
-rw-r--r-- | extensions/websocket/Cargo.toml (renamed from op_crates/websocket/Cargo.toml) | 0 | ||||
-rw-r--r-- | extensions/websocket/README.md (renamed from op_crates/websocket/README.md) | 0 | ||||
-rw-r--r-- | extensions/websocket/lib.deno_websocket.d.ts (renamed from op_crates/websocket/lib.deno_websocket.d.ts) | 0 | ||||
-rw-r--r-- | extensions/websocket/lib.rs (renamed from op_crates/websocket/lib.rs) | 2 | ||||
-rw-r--r-- | runtime/Cargo.toml | 40 | ||||
-rw-r--r-- | tools/cut_a_release.md | 6 |
97 files changed, 55 insertions, 55 deletions
diff --git a/Cargo.toml b/Cargo.toml index b5ffb58f5..47e278f82 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,14 +8,14 @@ members = [ "serde_v8", "test_plugin", "test_util", - "op_crates/crypto", - "op_crates/fetch", - "op_crates/timers", - "op_crates/url", - "op_crates/web", - "op_crates/webgpu", - "op_crates/webidl", - "op_crates/websocket", + "extensions/crypto", + "extensions/fetch", + "extensions/timers", + "extensions/url", + "extensions/web", + "extensions/webgpu", + "extensions/webidl", + "extensions/websocket", ] exclude = [ "std/hash/_wasm" diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts index 3eebab677..b7eca1e24 100644 --- a/cli/dts/lib.deno.window.d.ts +++ b/cli/dts/lib.deno.window.d.ts @@ -62,7 +62,7 @@ declare function confirm(message?: string): boolean; */ declare function prompt(message?: string, defaultValue?: string): string | null; -// TODO(nayeemrmn): Move this to `op_crates/web` where its implementation is. +// TODO(nayeemrmn): Move this to `extensions/web` where its implementation is. // The types there must first be split into window, worker and global types. /** The location (URL) of the object it is linked to. Changes done on it are * reflected on the object it relates to. Accessible via @@ -130,6 +130,6 @@ declare class Location { replace(url: string): void; } -// TODO(nayeemrmn): Move this to `op_crates/web` where its implementation is. +// TODO(nayeemrmn): Move this to `extensions/web` where its implementation is. // The types there must first be split into window, worker and global types. declare var location: Location; diff --git a/cli/dts/lib.deno.worker.d.ts b/cli/dts/lib.deno.worker.d.ts index 653a8931b..1d1b08a5f 100644 --- a/cli/dts/lib.deno.worker.d.ts +++ b/cli/dts/lib.deno.worker.d.ts @@ -71,7 +71,7 @@ declare var close: () => void; declare var name: string; declare var postMessage: (message: any) => void; -// TODO(nayeemrmn): Move this to `op_crates/web` where its implementation is. +// TODO(nayeemrmn): Move this to `extensions/web` where its implementation is. // The types there must first be split into window, worker and global types. /** The absolute location of the script executed by the Worker. Such an object * is initialized for each worker and is available via the @@ -90,6 +90,6 @@ declare class WorkerLocation { readonly search: string; } -// TODO(nayeemrmn): Move this to `op_crates/web` where its implementation is. +// TODO(nayeemrmn): Move this to `extensions/web` where its implementation is. // The types there must first be split into window, worker and global types. declare var location: WorkerLocation; diff --git a/cli/tests/error_009_op_crates_error.js b/cli/tests/error_009_extensions_error.js index 01b97ea38..01b97ea38 100644 --- a/cli/tests/error_009_op_crates_error.js +++ b/cli/tests/error_009_extensions_error.js diff --git a/cli/tests/error_009_op_crates_error.js.out b/cli/tests/error_009_extensions_error.js.out index 229a0ff1f..96ffb2829 100644 --- a/cli/tests/error_009_op_crates_error.js.out +++ b/cli/tests/error_009_extensions_error.js.out @@ -2,5 +2,5 @@ new Event(); ^ at [WILDCARD] - at new Event (deno:op_crates/web/[WILDCARD]) + at new Event (deno:extensions/web/[WILDCARD]) at [WILDCARD] diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 9c56396b4..0b7b85ac8 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -3109,9 +3109,9 @@ console.log("finish"); output: "error_008_checkjs.js.out", }); - itest!(error_009_op_crates_error { - args: "run error_009_op_crates_error.js", - output: "error_009_op_crates_error.js.out", + itest!(error_009_extensions_error { + args: "run error_009_extensions_error.js", + output: "error_009_extensions_error.js.out", exit_code: 1, }); diff --git a/cli/tests/unit/metrics_test.ts b/cli/tests/unit/metrics_test.ts index 25c63dbc1..a1936cb1d 100644 --- a/cli/tests/unit/metrics_test.ts +++ b/cli/tests/unit/metrics_test.ts @@ -70,7 +70,7 @@ unitTest( }, ); -// Test that ops from op_crates have metrics (via OpMiddleware) +// Test that ops from extensions have metrics (via OpMiddleware) unitTest(function metricsForOpCrates(): void { const _ = new URL("https://deno.land"); diff --git a/core/extensions.rs b/core/extensions.rs index 134aab5d4..9ad2b3697 100644 --- a/core/extensions.rs +++ b/core/extensions.rs @@ -110,7 +110,7 @@ impl ExtensionBuilder { /// Example: /// ```ignore /// include_js_files!( -/// prefix "deno:op_crates/hello", +/// prefix "deno:extensions/hello", /// "01_hello.js", /// "02_goodbye.js", /// ) diff --git a/op_crates/console/01_colors.js b/extensions/console/01_colors.js index 66dcb6e23..66dcb6e23 100644 --- a/op_crates/console/01_colors.js +++ b/extensions/console/01_colors.js diff --git a/op_crates/console/02_console.js b/extensions/console/02_console.js index 2c0dcf434..d0392cefe 100644 --- a/op_crates/console/02_console.js +++ b/extensions/console/02_console.js @@ -905,8 +905,8 @@ if (customInspect in value && typeof value[customInspect] === "function") { return String(value[customInspect]()); } - // This non-unique symbol is used to support op_crates, ie. - // in op_crates/web we don't want to depend on unique "Deno.customInspect" + // This non-unique symbol is used to support extensions, ie. + // in extensions/web we don't want to depend on unique "Deno.customInspect" // symbol defined in the public API. Internal only, shouldn't be used // by users. const nonUniqueCustomInspect = Symbol.for("Deno.customInspect"); @@ -915,7 +915,7 @@ typeof value[nonUniqueCustomInspect] === "function" ) { // TODO(nayeemrmn): `inspect` is passed as an argument because custom - // inspect implementations in `op_crates` need it, but may not have access + // inspect implementations in `extensions` need it, but may not have access // to the `Deno` namespace in web workers. Remove when the `Deno` // namespace is always enabled. return String(value[nonUniqueCustomInspect](inspect)); diff --git a/op_crates/console/Cargo.toml b/extensions/console/Cargo.toml index a3964a1f4..a3964a1f4 100644 --- a/op_crates/console/Cargo.toml +++ b/extensions/console/Cargo.toml diff --git a/op_crates/console/README.md b/extensions/console/README.md index 2f8fb448a..2f8fb448a 100644 --- a/op_crates/console/README.md +++ b/extensions/console/README.md diff --git a/op_crates/console/lib.deno_console.d.ts b/extensions/console/lib.deno_console.d.ts index d6cb1e99b..d6cb1e99b 100644 --- a/op_crates/console/lib.deno_console.d.ts +++ b/extensions/console/lib.deno_console.d.ts diff --git a/op_crates/console/lib.rs b/extensions/console/lib.rs index 4f64bb108..27870fce6 100644 --- a/op_crates/console/lib.rs +++ b/extensions/console/lib.rs @@ -7,7 +7,7 @@ use std::path::PathBuf; pub fn init() -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/console", + prefix "deno:extensions/console", "01_colors.js", "02_console.js", )) diff --git a/op_crates/crypto/01_crypto.js b/extensions/crypto/01_crypto.js index dba6b0091..dba6b0091 100644 --- a/op_crates/crypto/01_crypto.js +++ b/extensions/crypto/01_crypto.js diff --git a/op_crates/crypto/Cargo.toml b/extensions/crypto/Cargo.toml index 91f60aa9c..91f60aa9c 100644 --- a/op_crates/crypto/Cargo.toml +++ b/extensions/crypto/Cargo.toml diff --git a/op_crates/crypto/README.md b/extensions/crypto/README.md index be0724458..be0724458 100644 --- a/op_crates/crypto/README.md +++ b/extensions/crypto/README.md diff --git a/op_crates/crypto/lib.deno_crypto.d.ts b/extensions/crypto/lib.deno_crypto.d.ts index a00757e71..a00757e71 100644 --- a/op_crates/crypto/lib.deno_crypto.d.ts +++ b/extensions/crypto/lib.deno_crypto.d.ts diff --git a/op_crates/crypto/lib.rs b/extensions/crypto/lib.rs index 543220548..45473f4d5 100644 --- a/op_crates/crypto/lib.rs +++ b/extensions/crypto/lib.rs @@ -18,7 +18,7 @@ pub use rand; // Re-export rand pub fn init(maybe_seed: Option<u64>) -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/crypto", + prefix "deno:extensions/crypto", "01_crypto.js", )) .ops(vec![( diff --git a/op_crates/fetch/01_fetch_util.js b/extensions/fetch/01_fetch_util.js index ff76421a1..ff76421a1 100644 --- a/op_crates/fetch/01_fetch_util.js +++ b/extensions/fetch/01_fetch_util.js diff --git a/op_crates/fetch/11_streams.js b/extensions/fetch/11_streams.js index 8bbf34898..8bbf34898 100644 --- a/op_crates/fetch/11_streams.js +++ b/extensions/fetch/11_streams.js diff --git a/op_crates/fetch/11_streams_types.d.ts b/extensions/fetch/11_streams_types.d.ts index a4c54363f..a4c54363f 100644 --- a/op_crates/fetch/11_streams_types.d.ts +++ b/extensions/fetch/11_streams_types.d.ts diff --git a/op_crates/fetch/20_headers.js b/extensions/fetch/20_headers.js index 94e1c4076..94e1c4076 100644 --- a/op_crates/fetch/20_headers.js +++ b/extensions/fetch/20_headers.js diff --git a/op_crates/fetch/21_formdata.js b/extensions/fetch/21_formdata.js index c50cf4cf7..c50cf4cf7 100644 --- a/op_crates/fetch/21_formdata.js +++ b/extensions/fetch/21_formdata.js diff --git a/op_crates/fetch/22_body.js b/extensions/fetch/22_body.js index 938e3023e..938e3023e 100644 --- a/op_crates/fetch/22_body.js +++ b/extensions/fetch/22_body.js diff --git a/op_crates/fetch/22_http_client.js b/extensions/fetch/22_http_client.js index 770080cc9..770080cc9 100644 --- a/op_crates/fetch/22_http_client.js +++ b/extensions/fetch/22_http_client.js diff --git a/op_crates/fetch/23_request.js b/extensions/fetch/23_request.js index 603a37a5f..603a37a5f 100644 --- a/op_crates/fetch/23_request.js +++ b/extensions/fetch/23_request.js diff --git a/op_crates/fetch/23_response.js b/extensions/fetch/23_response.js index 6bd7a6487..6bd7a6487 100644 --- a/op_crates/fetch/23_response.js +++ b/extensions/fetch/23_response.js diff --git a/op_crates/fetch/26_fetch.js b/extensions/fetch/26_fetch.js index cd86d6023..cd86d6023 100644 --- a/op_crates/fetch/26_fetch.js +++ b/extensions/fetch/26_fetch.js diff --git a/op_crates/fetch/Cargo.toml b/extensions/fetch/Cargo.toml index d2ed10714..d2ed10714 100644 --- a/op_crates/fetch/Cargo.toml +++ b/extensions/fetch/Cargo.toml diff --git a/op_crates/fetch/README.md b/extensions/fetch/README.md index 2c946197e..2c946197e 100644 --- a/op_crates/fetch/README.md +++ b/extensions/fetch/README.md diff --git a/op_crates/fetch/internal.d.ts b/extensions/fetch/internal.d.ts index 86de52761..86de52761 100644 --- a/op_crates/fetch/internal.d.ts +++ b/extensions/fetch/internal.d.ts diff --git a/op_crates/fetch/lib.deno_fetch.d.ts b/extensions/fetch/lib.deno_fetch.d.ts index af21d8c44..af21d8c44 100644 --- a/op_crates/fetch/lib.deno_fetch.d.ts +++ b/extensions/fetch/lib.deno_fetch.d.ts diff --git a/op_crates/fetch/lib.rs b/extensions/fetch/lib.rs index 861fc6e54..36a5b5afd 100644 --- a/op_crates/fetch/lib.rs +++ b/extensions/fetch/lib.rs @@ -58,7 +58,7 @@ pub fn init<P: FetchPermissions + 'static>( ) -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/fetch", + prefix "deno:extensions/fetch", "01_fetch_util.js", "11_streams.js", "20_headers.js", diff --git a/op_crates/file/01_file.js b/extensions/file/01_file.js index 05c410572..05c410572 100644 --- a/op_crates/file/01_file.js +++ b/extensions/file/01_file.js diff --git a/op_crates/file/02_filereader.js b/extensions/file/02_filereader.js index 9575ab85a..9575ab85a 100644 --- a/op_crates/file/02_filereader.js +++ b/extensions/file/02_filereader.js diff --git a/op_crates/file/03_blob_url.js b/extensions/file/03_blob_url.js index 2b5e16b55..2b5e16b55 100644 --- a/op_crates/file/03_blob_url.js +++ b/extensions/file/03_blob_url.js diff --git a/op_crates/file/Cargo.toml b/extensions/file/Cargo.toml index 2338fab7c..2338fab7c 100644 --- a/op_crates/file/Cargo.toml +++ b/extensions/file/Cargo.toml diff --git a/op_crates/file/README.md b/extensions/file/README.md index c421bf004..c421bf004 100644 --- a/op_crates/file/README.md +++ b/extensions/file/README.md diff --git a/op_crates/file/internal.d.ts b/extensions/file/internal.d.ts index dd892e736..dd892e736 100644 --- a/op_crates/file/internal.d.ts +++ b/extensions/file/internal.d.ts diff --git a/op_crates/file/lib.deno_file.d.ts b/extensions/file/lib.deno_file.d.ts index a907c3f50..a907c3f50 100644 --- a/op_crates/file/lib.deno_file.d.ts +++ b/extensions/file/lib.deno_file.d.ts diff --git a/op_crates/file/lib.rs b/extensions/file/lib.rs index ccde34ada..78e3db814 100644 --- a/op_crates/file/lib.rs +++ b/extensions/file/lib.rs @@ -90,7 +90,7 @@ pub fn init( ) -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/file", + prefix "deno:extensions/file", "01_file.js", "02_filereader.js", "03_blob_url.js", diff --git a/op_crates/timers/01_timers.js b/extensions/timers/01_timers.js index d6d6436fe..756e38875 100644 --- a/op_crates/timers/01_timers.js +++ b/extensions/timers/01_timers.js @@ -4,7 +4,7 @@ ((window) => { const core = window.Deno.core; - // Shamelessly cribbed from op_crates/fetch/11_streams.js + // Shamelessly cribbed from extensions/fetch/11_streams.js class AssertionError extends Error { constructor(msg) { super(msg); diff --git a/op_crates/timers/Cargo.toml b/extensions/timers/Cargo.toml index ead1ae00c..ead1ae00c 100644 --- a/op_crates/timers/Cargo.toml +++ b/extensions/timers/Cargo.toml diff --git a/op_crates/timers/README.md b/extensions/timers/README.md index 5a2a8e516..5a2a8e516 100644 --- a/op_crates/timers/README.md +++ b/extensions/timers/README.md diff --git a/op_crates/timers/lib.rs b/extensions/timers/lib.rs index 62f5953fa..5a9b28bb6 100644 --- a/op_crates/timers/lib.rs +++ b/extensions/timers/lib.rs @@ -44,7 +44,7 @@ impl TimersPermission for NoTimersPermission { pub fn init<P: TimersPermission + 'static>() -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/timers", + prefix "deno:extensions/timers", "01_timers.js", )) .ops(vec![ diff --git a/op_crates/url/00_url.js b/extensions/url/00_url.js index 340937748..340937748 100644 --- a/op_crates/url/00_url.js +++ b/extensions/url/00_url.js diff --git a/op_crates/url/Cargo.toml b/extensions/url/Cargo.toml index de7a3cb0a..de7a3cb0a 100644 --- a/op_crates/url/Cargo.toml +++ b/extensions/url/Cargo.toml diff --git a/op_crates/url/README.md b/extensions/url/README.md index 991dd8b20..991dd8b20 100644 --- a/op_crates/url/README.md +++ b/extensions/url/README.md diff --git a/op_crates/url/benches/url_ops.rs b/extensions/url/benches/url_ops.rs index 8b3cf2705..8b3cf2705 100644 --- a/op_crates/url/benches/url_ops.rs +++ b/extensions/url/benches/url_ops.rs diff --git a/op_crates/url/internal.d.ts b/extensions/url/internal.d.ts index ec2c2688c..ec2c2688c 100644 --- a/op_crates/url/internal.d.ts +++ b/extensions/url/internal.d.ts diff --git a/op_crates/url/lib.deno_url.d.ts b/extensions/url/lib.deno_url.d.ts index 3f9745352..3f9745352 100644 --- a/op_crates/url/lib.deno_url.d.ts +++ b/extensions/url/lib.deno_url.d.ts diff --git a/op_crates/url/lib.rs b/extensions/url/lib.rs index 1d7a9b08b..a4a42cd0c 100644 --- a/op_crates/url/lib.rs +++ b/extensions/url/lib.rs @@ -19,7 +19,7 @@ use std::path::PathBuf; pub fn init() -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/url", + prefix "deno:extensions/url", "00_url.js", )) .ops(vec![ diff --git a/op_crates/web/00_infra.js b/extensions/web/00_infra.js index 05f68268f..05f68268f 100644 --- a/op_crates/web/00_infra.js +++ b/extensions/web/00_infra.js diff --git a/op_crates/web/01_dom_exception.js b/extensions/web/01_dom_exception.js index f5bd3289b..f5bd3289b 100644 --- a/op_crates/web/01_dom_exception.js +++ b/extensions/web/01_dom_exception.js diff --git a/op_crates/web/01_mimesniff.js b/extensions/web/01_mimesniff.js index b42dd1409..b42dd1409 100644 --- a/op_crates/web/01_mimesniff.js +++ b/extensions/web/01_mimesniff.js diff --git a/op_crates/web/02_event.js b/extensions/web/02_event.js index 35112132e..35112132e 100644 --- a/op_crates/web/02_event.js +++ b/extensions/web/02_event.js diff --git a/op_crates/web/03_abort_signal.js b/extensions/web/03_abort_signal.js index e2648e778..e2648e778 100644 --- a/op_crates/web/03_abort_signal.js +++ b/extensions/web/03_abort_signal.js diff --git a/op_crates/web/04_global_interfaces.js b/extensions/web/04_global_interfaces.js index c3181fb66..c3181fb66 100644 --- a/op_crates/web/04_global_interfaces.js +++ b/extensions/web/04_global_interfaces.js diff --git a/op_crates/web/08_text_encoding.js b/extensions/web/08_text_encoding.js index 7e7d4a573..7e7d4a573 100644 --- a/op_crates/web/08_text_encoding.js +++ b/extensions/web/08_text_encoding.js diff --git a/op_crates/web/12_location.js b/extensions/web/12_location.js index 2b6580f8b..2b6580f8b 100644 --- a/op_crates/web/12_location.js +++ b/extensions/web/12_location.js diff --git a/op_crates/web/Cargo.toml b/extensions/web/Cargo.toml index 5608fadbd..5608fadbd 100644 --- a/op_crates/web/Cargo.toml +++ b/extensions/web/Cargo.toml diff --git a/op_crates/web/README.md b/extensions/web/README.md index 03c1b7f89..03c1b7f89 100644 --- a/op_crates/web/README.md +++ b/extensions/web/README.md diff --git a/op_crates/web/internal.d.ts b/extensions/web/internal.d.ts index bfce3e1e1..bfce3e1e1 100644 --- a/op_crates/web/internal.d.ts +++ b/extensions/web/internal.d.ts diff --git a/op_crates/web/lib.deno_web.d.ts b/extensions/web/lib.deno_web.d.ts index 0fce6ce6b..0fce6ce6b 100644 --- a/op_crates/web/lib.deno_web.d.ts +++ b/extensions/web/lib.deno_web.d.ts diff --git a/op_crates/web/lib.rs b/extensions/web/lib.rs index a2612743e..0d2dbbd78 100644 --- a/op_crates/web/lib.rs +++ b/extensions/web/lib.rs @@ -8,7 +8,7 @@ use std::path::PathBuf; pub fn init() -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/web", + prefix "deno:extensions/web", "00_infra.js", "01_dom_exception.js", "01_mimesniff.js", diff --git a/op_crates/webgpu/01_webgpu.js b/extensions/webgpu/01_webgpu.js index a02262ccd..a02262ccd 100644 --- a/op_crates/webgpu/01_webgpu.js +++ b/extensions/webgpu/01_webgpu.js diff --git a/op_crates/webgpu/02_idl_types.js b/extensions/webgpu/02_idl_types.js index f990a40e8..f990a40e8 100644 --- a/op_crates/webgpu/02_idl_types.js +++ b/extensions/webgpu/02_idl_types.js diff --git a/op_crates/webgpu/Cargo.toml b/extensions/webgpu/Cargo.toml index 148ddea6a..148ddea6a 100644 --- a/op_crates/webgpu/Cargo.toml +++ b/extensions/webgpu/Cargo.toml diff --git a/op_crates/webgpu/README.md b/extensions/webgpu/README.md index 2f915dcbb..2f915dcbb 100644 --- a/op_crates/webgpu/README.md +++ b/extensions/webgpu/README.md diff --git a/op_crates/webgpu/binding.rs b/extensions/webgpu/binding.rs index fd4e75784..fd4e75784 100644 --- a/op_crates/webgpu/binding.rs +++ b/extensions/webgpu/binding.rs diff --git a/op_crates/webgpu/buffer.rs b/extensions/webgpu/buffer.rs index 19fc428cb..19fc428cb 100644 --- a/op_crates/webgpu/buffer.rs +++ b/extensions/webgpu/buffer.rs diff --git a/op_crates/webgpu/bundle.rs b/extensions/webgpu/bundle.rs index d33563118..d33563118 100644 --- a/op_crates/webgpu/bundle.rs +++ b/extensions/webgpu/bundle.rs diff --git a/op_crates/webgpu/command_encoder.rs b/extensions/webgpu/command_encoder.rs index 724ce72c4..724ce72c4 100644 --- a/op_crates/webgpu/command_encoder.rs +++ b/extensions/webgpu/command_encoder.rs diff --git a/op_crates/webgpu/compute_pass.rs b/extensions/webgpu/compute_pass.rs index e8ec642e9..e8ec642e9 100644 --- a/op_crates/webgpu/compute_pass.rs +++ b/extensions/webgpu/compute_pass.rs diff --git a/op_crates/webgpu/error.rs b/extensions/webgpu/error.rs index 57e2e675f..57e2e675f 100644 --- a/op_crates/webgpu/error.rs +++ b/extensions/webgpu/error.rs diff --git a/op_crates/webgpu/lib.deno_webgpu.d.ts b/extensions/webgpu/lib.deno_webgpu.d.ts index bb5da20d6..bb5da20d6 100644 --- a/op_crates/webgpu/lib.deno_webgpu.d.ts +++ b/extensions/webgpu/lib.deno_webgpu.d.ts diff --git a/op_crates/webgpu/lib.rs b/extensions/webgpu/lib.rs index b5b2905b2..906c4876e 100644 --- a/op_crates/webgpu/lib.rs +++ b/extensions/webgpu/lib.rs @@ -97,7 +97,7 @@ impl Resource for WebGpuQuerySet { pub fn init(unstable: bool) -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/webgpu", + prefix "deno:extensions/webgpu", "01_webgpu.js", "02_idl_types.js", )) diff --git a/op_crates/webgpu/pipeline.rs b/extensions/webgpu/pipeline.rs index 8eb291b97..8eb291b97 100644 --- a/op_crates/webgpu/pipeline.rs +++ b/extensions/webgpu/pipeline.rs diff --git a/op_crates/webgpu/queue.rs b/extensions/webgpu/queue.rs index 93fd95502..93fd95502 100644 --- a/op_crates/webgpu/queue.rs +++ b/extensions/webgpu/queue.rs diff --git a/op_crates/webgpu/render_pass.rs b/extensions/webgpu/render_pass.rs index 236c55939..236c55939 100644 --- a/op_crates/webgpu/render_pass.rs +++ b/extensions/webgpu/render_pass.rs diff --git a/op_crates/webgpu/sampler.rs b/extensions/webgpu/sampler.rs index 5e0ebc61e..5e0ebc61e 100644 --- a/op_crates/webgpu/sampler.rs +++ b/extensions/webgpu/sampler.rs diff --git a/op_crates/webgpu/shader.rs b/extensions/webgpu/shader.rs index 0e653b470..0e653b470 100644 --- a/op_crates/webgpu/shader.rs +++ b/extensions/webgpu/shader.rs diff --git a/op_crates/webgpu/texture.rs b/extensions/webgpu/texture.rs index 28b8ca1a4..28b8ca1a4 100644 --- a/op_crates/webgpu/texture.rs +++ b/extensions/webgpu/texture.rs diff --git a/op_crates/webgpu/webgpu.idl b/extensions/webgpu/webgpu.idl index 598df7efb..598df7efb 100644 --- a/op_crates/webgpu/webgpu.idl +++ b/extensions/webgpu/webgpu.idl diff --git a/op_crates/webidl/00_webidl.js b/extensions/webidl/00_webidl.js index 6bf98be06..6bf98be06 100644 --- a/op_crates/webidl/00_webidl.js +++ b/extensions/webidl/00_webidl.js diff --git a/op_crates/webidl/Cargo.toml b/extensions/webidl/Cargo.toml index 90a3e2cb9..90a3e2cb9 100644 --- a/op_crates/webidl/Cargo.toml +++ b/extensions/webidl/Cargo.toml diff --git a/op_crates/webidl/README.md b/extensions/webidl/README.md index ce2d661e3..ce2d661e3 100644 --- a/op_crates/webidl/README.md +++ b/extensions/webidl/README.md diff --git a/op_crates/webidl/internal.d.ts b/extensions/webidl/internal.d.ts index ca72566a5..ca72566a5 100644 --- a/op_crates/webidl/internal.d.ts +++ b/extensions/webidl/internal.d.ts diff --git a/op_crates/webidl/lib.rs b/extensions/webidl/lib.rs index c73c60bab..fa243c9f1 100644 --- a/op_crates/webidl/lib.rs +++ b/extensions/webidl/lib.rs @@ -7,7 +7,7 @@ use deno_core::Extension; pub fn init() -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/webidl", + prefix "deno:extensions/webidl", "00_webidl.js", )) .build() diff --git a/op_crates/websocket/01_websocket.js b/extensions/websocket/01_websocket.js index c77af4566..c77af4566 100644 --- a/op_crates/websocket/01_websocket.js +++ b/extensions/websocket/01_websocket.js diff --git a/op_crates/websocket/Cargo.toml b/extensions/websocket/Cargo.toml index 516401204..516401204 100644 --- a/op_crates/websocket/Cargo.toml +++ b/extensions/websocket/Cargo.toml diff --git a/op_crates/websocket/README.md b/extensions/websocket/README.md index d6495f397..d6495f397 100644 --- a/op_crates/websocket/README.md +++ b/extensions/websocket/README.md diff --git a/op_crates/websocket/lib.deno_websocket.d.ts b/extensions/websocket/lib.deno_websocket.d.ts index 31e5782a6..31e5782a6 100644 --- a/op_crates/websocket/lib.deno_websocket.d.ts +++ b/extensions/websocket/lib.deno_websocket.d.ts diff --git a/op_crates/websocket/lib.rs b/extensions/websocket/lib.rs index acf823775..8dfa26c47 100644 --- a/op_crates/websocket/lib.rs +++ b/extensions/websocket/lib.rs @@ -339,7 +339,7 @@ pub fn init<P: WebSocketPermissions + 'static>( ) -> Extension { Extension::builder() .js(include_js_files!( - prefix "deno:op_crates/websocket", + prefix "deno:extensions/websocket", "01_websocket.js", )) .ops(vec![ diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 21294219b..8acd61f7e 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -18,34 +18,34 @@ name = "hello_runtime" path = "examples/hello_runtime.rs" [build-dependencies] -deno_console = { path = "../op_crates/console", version = "0.5.0" } +deno_console = { path = "../extensions/console", version = "0.5.0" } deno_core = { path = "../core", version = "0.86.0" } -deno_crypto = { path = "../op_crates/crypto", version = "0.19.0" } -deno_fetch = { path = "../op_crates/fetch", version = "0.27.0" } -deno_file = { path = "../op_crates/file", version = "0.4.0" } -deno_timers = { path = "../op_crates/timers", version = "0.3.0" } -deno_url = { path = "../op_crates/url", version = "0.5.0" } -deno_web = { path = "../op_crates/web", version = "0.35.0" } -deno_webgpu = { path = "../op_crates/webgpu", version = "0.6.0" } -deno_webidl = { path = "../op_crates/webidl", version = "0.5.0" } -deno_websocket = { path = "../op_crates/websocket", version = "0.10.0" } +deno_crypto = { path = "../extensions/crypto", version = "0.19.0" } +deno_fetch = { path = "../extensions/fetch", version = "0.27.0" } +deno_file = { path = "../extensions/file", version = "0.4.0" } +deno_timers = { path = "../extensions/timers", version = "0.3.0" } +deno_url = { path = "../extensions/url", version = "0.5.0" } +deno_web = { path = "../extensions/web", version = "0.35.0" } +deno_webgpu = { path = "../extensions/webgpu", version = "0.6.0" } +deno_webidl = { path = "../extensions/webidl", version = "0.5.0" } +deno_websocket = { path = "../extensions/websocket", version = "0.10.0" } [target.'cfg(windows)'.build-dependencies] winres = "0.1.11" winapi = "0.3.9" [dependencies] -deno_console = { path = "../op_crates/console", version = "0.5.0" } +deno_console = { path = "../extensions/console", version = "0.5.0" } deno_core = { path = "../core", version = "0.86.0" } -deno_crypto = { path = "../op_crates/crypto", version = "0.19.0" } -deno_fetch = { path = "../op_crates/fetch", version = "0.27.0" } -deno_file = { path = "../op_crates/file", version = "0.4.0" } -deno_timers = { path = "../op_crates/timers", version = "0.3.0" } -deno_url = { path = "../op_crates/url", version = "0.5.0" } -deno_web = { path = "../op_crates/web", version = "0.35.0" } -deno_webgpu = { path = "../op_crates/webgpu", version = "0.6.0" } -deno_webidl = { path = "../op_crates/webidl", version = "0.5.0" } -deno_websocket = { path = "../op_crates/websocket", version = "0.10.0" } +deno_crypto = { path = "../extensions/crypto", version = "0.19.0" } +deno_fetch = { path = "../extensions/fetch", version = "0.27.0" } +deno_file = { path = "../extensions/file", version = "0.4.0" } +deno_timers = { path = "../extensions/timers", version = "0.3.0" } +deno_url = { path = "../extensions/url", version = "0.5.0" } +deno_web = { path = "../extensions/web", version = "0.35.0" } +deno_webgpu = { path = "../extensions/webgpu", version = "0.6.0" } +deno_webidl = { path = "../extensions/webidl", version = "0.5.0" } +deno_websocket = { path = "../extensions/websocket", version = "0.10.0" } atty = "0.2.14" bytes = "1" diff --git a/tools/cut_a_release.md b/tools/cut_a_release.md index 365ed2402..ec5853819 100644 --- a/tools/cut_a_release.md +++ b/tools/cut_a_release.md @@ -4,7 +4,7 @@ release from) should be frozen and no commits should land until the release is cut.** -1. Create a PR that bumps versions of all crates in `op_crates` and `runtime` +1. Create a PR that bumps versions of all crates in `extensions` and `runtime` directories. To determine if you should bump a crate a minor version instead of a patch @@ -32,9 +32,9 @@ between the crates, it must be done in specific order: - `deno_core` - all crates depend on `deno_core` so it must always be published first -- crates in `op_crates/` directory - there is no specific order required for +- crates in `extensions/` directory - there is no specific order required for those -- `runtime` - this crate depends on `deno_core` and all crates in `op_crates/` +- `runtime` - this crate depends on `deno_core` and all crates in `extensions/` directory If there are any problems when you publish, that require you to change the code, |