rastack 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.26](https://github.com/theserverkid/reactapistack/compare/v0.0.25...v0.0.26) (2026-07-10)
|
|
6
|
+
|
|
5
7
|
### [0.0.25](https://github.com/theserverkid/reactapistack/compare/v0.0.24...v0.0.25) (2026-07-10)
|
|
6
8
|
|
|
7
9
|
### [0.0.24](https://github.com/theserverkid/reactapistack/compare/v0.0.23...v0.0.24) (2026-07-09)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* `rastack wasm` — compile the Rust API to WebAssembly for in-browser local dev.
|
|
4
4
|
*
|
|
5
5
|
* Pipeline:
|
|
6
|
-
* 1. cargo build -p
|
|
6
|
+
* 1. cargo build -p rastack-wasm --release --target wasm32-unknown-unknown
|
|
7
7
|
* 2. wasm-bindgen --target web → stack/wasm/rastack_wasm.js + rastack_wasm_bg.wasm
|
|
8
8
|
* 3. wasm-opt -Oz (if available) to shrink the binary
|
|
9
9
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `rastack wasm` — compile the Rust API to WebAssembly for in-browser local dev.
|
|
5
5
|
*
|
|
6
6
|
* Pipeline:
|
|
7
|
-
* 1. cargo build -p
|
|
7
|
+
* 1. cargo build -p rastack-wasm --release --target wasm32-unknown-unknown
|
|
8
8
|
* 2. wasm-bindgen --target web → stack/wasm/rastack_wasm.js + rastack_wasm_bg.wasm
|
|
9
9
|
* 3. wasm-opt -Oz (if available) to shrink the binary
|
|
10
10
|
*
|
|
@@ -49,11 +49,11 @@ function has(cmd) {
|
|
|
49
49
|
// nosemgrep: javascript.lang.security.detect-child-process.detect-child-process
|
|
50
50
|
return (0, child_process_1.spawnSync)(cmd, ["--version"], { stdio: "ignore" }).status === 0;
|
|
51
51
|
}
|
|
52
|
-
console.log("→ cargo build -p
|
|
52
|
+
console.log("→ cargo build -p rastack-wasm --release (wasm32-unknown-unknown)");
|
|
53
53
|
run("cargo", [
|
|
54
54
|
"build",
|
|
55
55
|
"-p",
|
|
56
|
-
"
|
|
56
|
+
"rastack-wasm",
|
|
57
57
|
"--release",
|
|
58
58
|
"--target",
|
|
59
59
|
"wasm32-unknown-unknown",
|
package/hooks/query/delete.ts
CHANGED
|
@@ -32,7 +32,9 @@ export function useDeleteQuery<TResult>({
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
const response: AxiosResponse = await API.delete(url);
|
|
35
|
-
return
|
|
35
|
+
// A delete may return 204 No Content (no body) or a JSON envelope; don't
|
|
36
|
+
// assume `.results` exists on an empty body.
|
|
37
|
+
return response.data?.results ?? response.data ?? null;
|
|
36
38
|
},
|
|
37
39
|
{
|
|
38
40
|
onSuccess: () => {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `rastack wasm` — compile the Rust API to WebAssembly for in-browser local dev.
|
|
5
5
|
*
|
|
6
6
|
* Pipeline:
|
|
7
|
-
* 1. cargo build -p
|
|
7
|
+
* 1. cargo build -p rastack-wasm --release --target wasm32-unknown-unknown
|
|
8
8
|
* 2. wasm-bindgen --target web → stack/wasm/rastack_wasm.js + rastack_wasm_bg.wasm
|
|
9
9
|
* 3. wasm-opt -Oz (if available) to shrink the binary
|
|
10
10
|
*
|
|
@@ -56,13 +56,13 @@ function has(cmd: string): boolean {
|
|
|
56
56
|
return spawnSync(cmd, ["--version"], { stdio: "ignore" }).status === 0;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
console.log("→ cargo build -p
|
|
59
|
+
console.log("→ cargo build -p rastack-wasm --release (wasm32-unknown-unknown)");
|
|
60
60
|
run(
|
|
61
61
|
"cargo",
|
|
62
62
|
[
|
|
63
63
|
"build",
|
|
64
64
|
"-p",
|
|
65
|
-
"
|
|
65
|
+
"rastack-wasm",
|
|
66
66
|
"--release",
|
|
67
67
|
"--target",
|
|
68
68
|
"wasm32-unknown-unknown",
|