Skip to content

Commit c079a73

Browse files
feat(sputnik): bump juno-js with latest patch (#2760)
* feat(sputnik): bump juno-js with latest patch * chore: fmt
1 parent c3496d4 commit c079a73

3 files changed

Lines changed: 96 additions & 86 deletions

File tree

package-lock.json

Lines changed: 72 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@
7979
"@dfinity/pic": "^0.21.0",
8080
"@dfinity/response-verification": "^3.0.4",
8181
"@icp-sdk/bindgen": "^0.3.0",
82-
"@junobuild/cli-tools": "^0.13.3",
83-
"@junobuild/config": "^2.15.1",
84-
"@junobuild/config-loader": "^0.4.10",
85-
"@junobuild/errors": "^0.2.6",
86-
"@junobuild/functions": "^0.8.2",
82+
"@junobuild/cli-tools": "^0.14.0",
83+
"@junobuild/config": "^3.0.0",
84+
"@junobuild/config-loader": "^0.4.11",
85+
"@junobuild/errors": "^0.2.8",
86+
"@junobuild/functions": "^0.8.3",
8787
"@ltd/j-toml": "^1.38.0",
8888
"@playwright/test": "^1.59.1",
8989
"@sveltejs/adapter-static": "^3.0.10",
@@ -121,14 +121,14 @@
121121
"@icp-sdk/auth": "^5.0.0",
122122
"@icp-sdk/canisters": "^3.5.2",
123123
"@icp-sdk/core": "5.2.1",
124-
"@junobuild/admin": "^4.3.2",
125-
"@junobuild/auth": "^4.1.1",
126-
"@junobuild/cdn": "^2.4.2",
127-
"@junobuild/core": "^5.3.1",
128-
"@junobuild/ic-client": "^8.1.2",
129-
"@junobuild/schema": "^1.2.1",
130-
"@junobuild/storage": "^2.4.1",
131-
"@junobuild/utils": "^1.0.2",
124+
"@junobuild/admin": "^4.3.3",
125+
"@junobuild/auth": "^4.1.2",
126+
"@junobuild/cdn": "^2.5.0",
127+
"@junobuild/core": "^5.4.0",
128+
"@junobuild/ic-client": "^8.1.3",
129+
"@junobuild/schema": "^1.2.3",
130+
"@junobuild/storage": "^2.4.2",
131+
"@junobuild/utils": "^1.0.3",
132132
"@zip.js/zip.js": "^2.8.26",
133133
"date-fns": "^4.1.0",
134134
"dompurify": "^3.3.3",

src/tests/fixtures/test_sputnik/resources/custom-functions-option.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,14 @@ export const testQuery = defineQuery({
4848
preferences: undefined
4949
})
5050
});
51+
52+
export const testQuery2 = defineQuery({
53+
result: j.strictObject({
54+
// Issue: optional enum fields incorrectly emitted #[json_data(nested)] because
55+
// needsJsonData was not forwarded when wrapping a composite type in opt.
56+
role: j.enum(['admin', 'user'] as const).optional()
57+
}),
58+
handler: () => ({
59+
role: undefined
60+
})
61+
});

0 commit comments

Comments
 (0)