Skip to content

Commit

Permalink
fix: upgrade deno_cache to 0.5.2 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Aug 17, 2023
1 parent 7e6b532 commit ab4990f
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 60 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"lock": false,
"tasks": {
"test": "deno test -A",
"build": "deno run -A --no-check --unstable https://deno.land/x/wasmbuild@0.14.1/main.ts --out lib/pkg"
"build": "deno run -A --no-check --unstable https://deno.land/x/wasmbuild@0.15.0/main.ts --out lib/pkg"
},
"lint": {
"rules": {
Expand Down
80 changes: 40 additions & 40 deletions lib/pkg/dnt_wasm.generated.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file
// source-hash: a7a060cefc1b71eae5995d41024f816abcb66e07
// source-hash: abe9e39e07ec39d195f316eff9b6bf7127f8ddc3
let wasm;

import { fetch_specifier } from "./snippets/dnt-wasm-a15ef721fa5290c5/helpers.js";
Expand Down Expand Up @@ -54,14 +54,14 @@ const encodeString = function (arg, view) {
function passStringToWasm0(arg, malloc, realloc) {
if (realloc === undefined) {
const buf = cachedTextEncoder.encode(arg);
const ptr = malloc(buf.length) >>> 0;
const ptr = malloc(buf.length, 1) >>> 0;
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
WASM_VECTOR_LEN = buf.length;
return ptr;
}

let len = arg.length;
let ptr = malloc(len) >>> 0;
let ptr = malloc(len, 1) >>> 0;

const mem = getUint8Memory0();

Expand All @@ -77,7 +77,7 @@ function passStringToWasm0(arg, malloc, realloc) {
if (offset !== 0) {
arg = arg.slice(offset);
}
ptr = realloc(ptr, len, len = offset + arg.length * 3) >>> 0;
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
const ret = encodeString(arg, view);

Expand Down Expand Up @@ -229,7 +229,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
}
function __wbg_adapter_38(arg0, arg1, arg2) {
wasm
._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h49cfec08c8849794(
._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h922ebca14ef72c27(
arg0,
arg1,
addHeapObject(arg2),
Expand All @@ -253,7 +253,7 @@ function handleError(f, args) {
}
}
function __wbg_adapter_74(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h242b2886b40ed1f9(
wasm.wasm_bindgen__convert__closures__invoke2_mut__h887f43db23be9095(
arg0,
arg1,
addHeapObject(arg2),
Expand All @@ -277,7 +277,7 @@ const imports = {
},
__wbindgen_is_object: function (arg0) {
const val = getObject(arg0);
const ret = typeof (val) === "object" && val !== null;
const ret = typeof val === "object" && val !== null;
return ret;
},
__wbindgen_is_undefined: function (arg0) {
Expand All @@ -290,7 +290,7 @@ const imports = {
},
__wbindgen_string_get: function (arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof (obj) === "string" ? obj : undefined;
const ret = typeof obj === "string" ? obj : undefined;
var ptr1 = isLikeNone(ret)
? 0
: passStringToWasm0(
Expand Down Expand Up @@ -331,7 +331,7 @@ const imports = {
const ret = fetch_specifier(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
},
__wbindgen_is_null: function (arg0) {
Expand All @@ -348,12 +348,12 @@ const imports = {
},
__wbindgen_boolean_get: function (arg0) {
const v = getObject(arg0);
const ret = typeof (v) === "boolean" ? (v ? 1 : 0) : 2;
const ret = typeof v === "boolean" ? (v ? 1 : 0) : 2;
return ret;
},
__wbindgen_number_get: function (arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof (obj) === "number" ? obj : undefined;
const ret = typeof obj === "number" ? obj : undefined;
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
},
Expand All @@ -364,64 +364,64 @@ const imports = {
__wbg_set_841ac57cff3d672b: function (arg0, arg1, arg2) {
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
},
__wbg_get_7303ed2ef026b2f5: function (arg0, arg1) {
__wbg_get_44be0491f933a435: function (arg0, arg1) {
const ret = getObject(arg0)[arg1 >>> 0];
return addHeapObject(ret);
},
__wbg_length_820c786973abdd8a: function (arg0) {
__wbg_length_fff51ee6522a1a18: function (arg0) {
const ret = getObject(arg0).length;
return ret;
},
__wbg_new_0394642eae39db16: function () {
__wbg_new_898a68150f225f2e: function () {
const ret = new Array();
return addHeapObject(ret);
},
__wbindgen_is_function: function (arg0) {
const ret = typeof (getObject(arg0)) === "function";
return ret;
},
__wbg_next_f4bc0e96ea67da68: function (arg0) {
__wbg_next_526fc47e980da008: function (arg0) {
const ret = getObject(arg0).next;
return addHeapObject(ret);
},
__wbg_next_ec061e48a0e72a96: function () {
__wbg_next_ddb3312ca1c4e32a: function () {
return handleError(function (arg0) {
const ret = getObject(arg0).next();
return addHeapObject(ret);
}, arguments);
},
__wbg_done_b6abb27d42b63867: function (arg0) {
__wbg_done_5c1f01fb660d73b5: function (arg0) {
const ret = getObject(arg0).done;
return ret;
},
__wbg_value_2f4ef2036bfad28e: function (arg0) {
__wbg_value_1695675138684bd5: function (arg0) {
const ret = getObject(arg0).value;
return addHeapObject(ret);
},
__wbg_iterator_7c7e58f62eb84700: function () {
__wbg_iterator_97f0c81209c6c35a: function () {
const ret = Symbol.iterator;
return addHeapObject(ret);
},
__wbg_get_f53c921291c381bd: function () {
__wbg_get_97b561fb56f034b5: function () {
return handleError(function (arg0, arg1) {
const ret = Reflect.get(getObject(arg0), getObject(arg1));
return addHeapObject(ret);
}, arguments);
},
__wbg_call_557a2f2deacc4912: function () {
__wbg_call_cb65541d95d71282: function () {
return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments);
},
__wbg_new_2b6fea4ea03b1b95: function () {
__wbg_new_b51585de1b234aff: function () {
const ret = new Object();
return addHeapObject(ret);
},
__wbg_set_b4da98d504ac6091: function (arg0, arg1, arg2) {
__wbg_set_502d29070ea18557: function (arg0, arg1, arg2) {
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
},
__wbg_instanceof_ArrayBuffer_ef2632aa0d4bfff8: function (arg0) {
__wbg_instanceof_ArrayBuffer_39ac22089b74fddb: function (arg0) {
let result;
try {
result = getObject(arg0) instanceof ArrayBuffer;
Expand All @@ -431,17 +431,17 @@ const imports = {
const ret = result;
return ret;
},
__wbg_call_587b30eea3e09332: function () {
__wbg_call_01734de55d61e11d: function () {
return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments);
},
__wbg_entries_13e011453776468f: function (arg0) {
__wbg_entries_e51f29c7bba0c054: function (arg0) {
const ret = Object.entries(getObject(arg0));
return addHeapObject(ret);
},
__wbg_new_2b55e405e4af4986: function (arg0, arg1) {
__wbg_new_43f1b47c28813cbd: function (arg0, arg1) {
try {
var state0 = { a: arg0, b: arg1 };
var cb0 = (arg0, arg1) => {
Expand All @@ -459,34 +459,34 @@ const imports = {
state0.a = state0.b = 0;
}
},
__wbg_resolve_ae38ad63c43ff98b: function (arg0) {
__wbg_resolve_53698b95aaf7fcf8: function (arg0) {
const ret = Promise.resolve(getObject(arg0));
return addHeapObject(ret);
},
__wbg_then_8df675b8bb5d5e3c: function (arg0, arg1) {
__wbg_then_f7e06ee3c11698eb: function (arg0, arg1) {
const ret = getObject(arg0).then(getObject(arg1));
return addHeapObject(ret);
},
__wbg_then_835b073a479138e5: function (arg0, arg1, arg2) {
__wbg_then_b2267541e2a73865: function (arg0, arg1, arg2) {
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
},
__wbg_buffer_55ba7a6b1b92e2ac: function (arg0) {
__wbg_buffer_085ec1f694018c4f: function (arg0) {
const ret = getObject(arg0).buffer;
return addHeapObject(ret);
},
__wbg_new_09938a7d020f049b: function (arg0) {
__wbg_new_8125e318e6245eed: function (arg0) {
const ret = new Uint8Array(getObject(arg0));
return addHeapObject(ret);
},
__wbg_set_3698e3ca519b3c3c: function (arg0, arg1, arg2) {
__wbg_set_5cf90238115182c3: function (arg0, arg1, arg2) {
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
},
__wbg_length_0aab7ffd65ad19ed: function (arg0) {
__wbg_length_72e2208bbc0efc61: function (arg0) {
const ret = getObject(arg0).length;
return ret;
},
__wbg_instanceof_Uint8Array_1349640af2da2e88: function (arg0) {
__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4: function (arg0) {
let result;
try {
result = getObject(arg0) instanceof Uint8Array;
Expand Down Expand Up @@ -519,7 +519,7 @@ const imports = {
deferred0_1 = arg1;
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1);
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
},
__wbindgen_debug_string: function (arg0, arg1) {
Expand All @@ -540,15 +540,15 @@ const imports = {
const ret = wasm.memory;
return addHeapObject(ret);
},
__wbindgen_closure_wrapper702: function (arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 229, __wbg_adapter_38);
__wbindgen_closure_wrapper707: function (arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 228, __wbg_adapter_38);
return addHeapObject(ret);
},
},
};

import { Loader } from "https://deno.land/x/wasmbuild@0.14.1/loader.ts";
import { cacheToLocalDir } from "https://deno.land/x/wasmbuild@0.14.1/cache.ts";
import { Loader } from "https://deno.land/x/wasmbuild@0.15.0/loader.ts";
import { cacheToLocalDir } from "https://deno.land/x/wasmbuild@0.15.0/cache.ts";

const loader = new Loader({
imports,
Expand Down
Binary file modified lib/pkg/dnt_wasm_bg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/pkg/snippets/dnt-wasm-a15ef721fa5290c5/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createCache } from "https://deno.land/x/deno_cache@0.4.1/mod.ts";
import { createCache } from "https://deno.land/x/deno_cache@0.5.2/mod.ts";

const fileFetcher = createCache();

Expand Down
6 changes: 3 additions & 3 deletions wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ default = ["console_error_panic_hook"]
[dependencies]
anyhow = "1.0.51"
dnt = { path = "../rs-lib", default-features = false, features = ["serialization"], package="deno_node_transform" }
js-sys = "=0.3.63"
wasm-bindgen = { version = "=0.2.86", features = ["serde-serialize"] }
wasm-bindgen-futures = "=0.4.36"
js-sys = "=0.3.64"
wasm-bindgen = { version = "=0.2.87", features = ["serde-serialize"] }
wasm-bindgen-futures = "=0.4.37"

# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
Expand Down
2 changes: 1 addition & 1 deletion wasm/helpers.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createCache } from "https://deno.land/x/deno_cache@0.4.1/mod.ts";
import { createCache } from "https://deno.land/x/deno_cache@0.5.2/mod.ts";

const fileFetcher = createCache();

Expand Down

0 comments on commit ab4990f

Please sign in to comment.