toiljs 0.0.38 → 0.0.39
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 +10 -1
- package/as-pect.config.js +1 -1
- package/examples/basic/client/components/Header.tsx +1 -1
- package/examples/basic/client/routes/index.tsx +1 -1
- package/package.json +1 -1
- package/server/runtime/env/Server.ts +1 -2
- package/server/runtime/handlers/ToilHandler.ts +4 -5
- package/server/runtime/index.ts +1 -2
- package/server/runtime/lang/Potential.ts +2 -2
- package/test/assembly/cookie.spec.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v0.0.38] - 2026-06-13
|
|
4
|
+
|
|
5
|
+
### Other Changes
|
|
6
|
+
|
|
7
|
+
- fix(server-env): auto-generate the cookie-globals d.ts (fixes Cookie TS2345) ([#151](https://github.com/dacely-cloud/toiljs/pull/151)) by @BlobMaster41
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
3
12
|
## [v0.0.37] - 2026-06-13
|
|
4
13
|
|
|
5
14
|
### Other Changes
|
|
@@ -50,7 +59,7 @@
|
|
|
50
59
|
- ⬆️(deps-dev): Bump @microsoft/api-extractor from 7.58.7 to 7.58.8 in the dev-deps group ([#134](https://github.com/dacely-cloud/toiljs/pull/134)) by @dependabot[bot]
|
|
51
60
|
- ⬆️(deps): Bump sharp from 0.34.5 to 0.35.0 in the production-deps group ([#135](https://github.com/dacely-cloud/toiljs/pull/135)) by @dependabot[bot]
|
|
52
61
|
- deps: switch hyper-express to @dacely/hyper-express@6.17.4 ([#137](https://github.com/dacely-cloud/toiljs/pull/137)) by @BlobMaster41
|
|
53
|
-
- release 0.0.31: @dacely/hyper-express + @dacely/toilscript-loader, drop
|
|
62
|
+
- release 0.0.31: @dacely/hyper-express + @dacely/toilscript-loader, drop external direct deps ([#138](https://github.com/dacely-cloud/toiljs/pull/138)) by @BlobMaster41
|
|
54
63
|
|
|
55
64
|
|
|
56
65
|
|
package/as-pect.config.js
CHANGED
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
/**
|
|
59
59
|
* Enable code coverage. `securecookies.ts` is excluded: it depends on the
|
|
60
60
|
* toilscript crypto std (`crypto` / `data` / `bindings/webcrypto`), which the
|
|
61
|
-
* as-pect compiler
|
|
61
|
+
* as-pect compiler does not ship, so it cannot
|
|
62
62
|
* compile here. It is covered end-to-end against the real wasm in
|
|
63
63
|
* `test/devserver.test.ts`.
|
|
64
64
|
*/
|
|
@@ -30,7 +30,7 @@ export default function Header() {
|
|
|
30
30
|
<nav className="nav-links">
|
|
31
31
|
<Toil.Link href="https://toil.org/docs">Docs</Toil.Link>
|
|
32
32
|
<a
|
|
33
|
-
href="https://github.com/
|
|
33
|
+
href="https://github.com/dacely-cloud/toiljs"
|
|
34
34
|
target="_blank"
|
|
35
35
|
rel="noopener noreferrer"
|
|
36
36
|
className="nav-github">
|
|
@@ -125,7 +125,7 @@ export default function Home() {
|
|
|
125
125
|
</Toil.Link>
|
|
126
126
|
<a
|
|
127
127
|
className="btn btn-secondary"
|
|
128
|
-
href="https://github.com/
|
|
128
|
+
href="https://github.com/dacely-cloud/toiljs"
|
|
129
129
|
target="_blank"
|
|
130
130
|
rel="noopener noreferrer">
|
|
131
131
|
<GitHubIcon />
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Base class every toiljs server-side handler extends
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* without re-implementing `handle`.
|
|
2
|
+
* Base class every toiljs server-side handler extends. Override
|
|
3
|
+
* `handle(req)` to produce the response. The framework calls
|
|
4
|
+
* `onRequestStarted` / `onRequestCompleted` around every call so the user
|
|
5
|
+
* can hook for logging or metrics without re-implementing `handle`.
|
|
7
6
|
*/
|
|
8
7
|
|
|
9
8
|
import { Request } from '../request';
|
package/server/runtime/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `Potential<T>` is just `T | null
|
|
3
|
-
*
|
|
2
|
+
* `Potential<T>` is just `T | null`, a naming convention so the runtime's
|
|
3
|
+
* optional fields read consistently.
|
|
4
4
|
*/
|
|
5
5
|
export type Potential<T> = T | null;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// integration). Imports the specific modules rather than the runtime index so
|
|
3
3
|
// `securecookies.ts` is not pulled into the as-pect graph: it depends on the
|
|
4
4
|
// toilscript crypto std (`crypto` / `data` / `bindings/webcrypto`), which the
|
|
5
|
-
// as-pect compiler
|
|
5
|
+
// as-pect compiler does not ship. `SecureCookies`
|
|
6
6
|
// is exercised end-to-end against the real toilscript-compiled wasm in
|
|
7
7
|
// `test/devserver.test.ts`.
|
|
8
8
|
import { Method, Request, Header } from '../../server/runtime/request';
|