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
40 changes: 28 additions & 12 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ members = [
"cli/rt",
"cli/snapshot",
"ext/bundle",
"ext/cache",
"ext/canvas",
"ext/cron",
"ext/crypto",
Expand Down Expand Up @@ -86,6 +87,7 @@ denokv_sqlite = { default-features = false, version = "0.12.0" }

# exts
deno_bundle_runtime = { version = "0.8.0", path = "./ext/bundle" }
deno_cache = { version = "0.153.0", path = "./ext/cache" }
deno_canvas = { version = "0.90.0", path = "./ext/canvas" }
deno_cron = { version = "0.101.0", path = "./ext/cron" }
deno_crypto = { version = "0.235.0", path = "./ext/crypto" }
Expand Down
File renamed without changes.
30 changes: 28 additions & 2 deletions ext/cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,36 @@

[package]
name = "deno_cache"
version = "0.154.0"
version = "0.153.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
readme = "README.md"
repository.workspace = true
description = "DEPRECATED: Use deno_web instead"
description = "Implementation of Cache API for Deno"

[lib]
path = "lib.rs"

[dependencies]
async-stream.workspace = true
async-trait.workspace = true
base64.workspace = true
bytes.workspace = true
chrono = { workspace = true, features = ["now"] }
deno_core.workspace = true
deno_error.workspace = true
futures.workspace = true
http.workspace = true
http-body.workspace = true
http-body-util.workspace = true
hyper.workspace = true
hyper-util.workspace = true
log.workspace = true
rusqlite.workspace = true
serde.workspace = true
sha2.workspace = true
slab.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-util.workspace = true
24 changes: 22 additions & 2 deletions ext/cache/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# deno_cache

This crate has been deprecated, use
[deno_web](https://crates.io/crates/deno_web) instead.
This crate implements the Cache API for Deno.

The following APIs are implemented:

- [`CacheStorage::open()`][cache_storage_open]
- [`CacheStorage::has()`][cache_storage_has]
- [`CacheStorage::delete()`][cache_storage_delete]
- [`Cache::match()`][cache_match]
- [`Cache::put()`][cache_put]
- [`Cache::delete()`][cache_delete]

Cache APIs don't support the [query options][query_options] yet.

Spec: https://w3c.github.io/ServiceWorker/#cache-interface

[query_options]: https://w3c.github.io/ServiceWorker/#dictdef-cachequeryoptions
[cache_storage_open]: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open
[cache_storage_has]: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/has
[cache_storage_delete]: https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/delete
[cache_match]: https://developer.mozilla.org/en-US/docs/Web/API/Cache/match
[cache_put]: https://developer.mozilla.org/en-US/docs/Web/API/Cache/put
[cache_delete]: https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete
Loading
Loading