create-warlock 5.35.0 → 5.36.0
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 +6 -0
- package/llms-full.txt +1 -1
- package/package.json +2 -2
- package/skills/SKILL.md +1 -1
- package/templates/warlock/package.json +1 -1
- package/templates/warlock/src/web/home/components/contact-section.tsx +4 -1
- package/templates/warlock/src/web/home/hooks/use-contact-locale.ts +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `create-warlock` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 5.36.0 - 2026-10-22
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- The template pins Vitest 5.0.3. Selecting the test feature generates the runner against Vitest 5's `TestRunner`, and a web project declares Vite 8 and `@vitejs/plugin-react` 6. The generator's own dev dependencies use `@types/node` 22, the minimum Vitest 5 supports.
|
|
12
|
+
|
|
7
13
|
## 5.35.0 - 2026-10-21
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/llms-full.txt
CHANGED
|
@@ -285,7 +285,7 @@ features. A database-free scaffold needs no external database.
|
|
|
285
285
|
`npx create-warlock my-project --yes --features=test` delegates to `warlock add test`:
|
|
286
286
|
unit `*.spec.ts` outside `tests/` runs without Warlock setup, integration `*.test.ts`
|
|
287
287
|
and specs under `tests/` use framework setup and the generated cleanup runner.
|
|
288
|
-
The template pins Vitest
|
|
288
|
+
The template pins Vitest 5.0.3. See the generated `testing-strategy` skill for
|
|
289
289
|
`setupTest({ mode: "unit", importModule })`, opt-in `tests.lifetime: "worker"`,
|
|
290
290
|
`tests.resetBetweenFiles`, profiling and the changed-tests release gate.
|
|
291
291
|
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@clack/prompts": "^0.8.2",
|
|
15
15
|
"@mongez/copper": "^2.1.3",
|
|
16
|
-
"@warlock.js/fs": "5.
|
|
16
|
+
"@warlock.js/fs": "5.36.0",
|
|
17
17
|
"@mongez/reinforcements": "^4.0.2",
|
|
18
18
|
"cross-spawn": "^7.0.3",
|
|
19
19
|
"rimraf": "^6.0.1",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22.15"
|
|
24
24
|
},
|
|
25
|
-
"version": "5.
|
|
25
|
+
"version": "5.36.0",
|
|
26
26
|
"type": "module",
|
|
27
27
|
"main": "./esm/index.mjs",
|
|
28
28
|
"module": "./esm/index.mjs",
|
package/skills/SKILL.md
CHANGED
|
@@ -277,7 +277,7 @@ features. A database-free scaffold needs no external database.
|
|
|
277
277
|
`npx create-warlock my-project --yes --features=test` delegates to `warlock add test`:
|
|
278
278
|
unit `*.spec.ts` outside `tests/` runs without Warlock setup, integration `*.test.ts`
|
|
279
279
|
and specs under `tests/` use framework setup and the generated cleanup runner.
|
|
280
|
-
The template pins Vitest
|
|
280
|
+
The template pins Vitest 5.0.3. See the generated `testing-strategy` skill for
|
|
281
281
|
`setupTest({ mode: "unit", importModule })`, opt-in `tests.lifetime: "worker"`,
|
|
282
282
|
`tests.resetBetweenFiles`, profiling and the changed-tests release gate.
|
|
283
283
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Form } from "@mongez/react-form";
|
|
2
|
+
import { useTrans } from "@warlock.js/web";
|
|
2
3
|
import { contactSchema } from "../../../shared/contact.schema";
|
|
3
4
|
import { useContactForm } from "../hooks/use-contact-form";
|
|
4
5
|
import { useContactLocale } from "../hooks/use-contact-locale";
|
|
@@ -7,7 +8,9 @@ import ContactSubmitButton from "./contact-submit-button";
|
|
|
7
8
|
|
|
8
9
|
export default function ContactSection() {
|
|
9
10
|
const { status: contactStatus, submitContact } = useContactForm();
|
|
10
|
-
const { direction,
|
|
11
|
+
const { direction, isSwitchingLocale, localeError, toggleLocale } = useContactLocale();
|
|
12
|
+
// Called here, with literal keys, so the page ships exactly the keys it renders.
|
|
13
|
+
const translate = useTrans();
|
|
11
14
|
|
|
12
15
|
return (
|
|
13
16
|
<section className="warlock-section warlock-contact" id="contact" dir={direction}>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { changeLocaleCode, useLocale, useTextDirection
|
|
1
|
+
import { changeLocaleCode, useLocale, useTextDirection } from "@warlock.js/web";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
|
|
4
4
|
/** Own the contact section's locale switch and recoverable error state. */
|
|
5
5
|
export function useContactLocale() {
|
|
6
6
|
const locale = useLocale();
|
|
7
7
|
const direction = useTextDirection();
|
|
8
|
-
const translate = useTrans();
|
|
9
8
|
const [isSwitchingLocale, setIsSwitchingLocale] = useState(false);
|
|
10
9
|
const [localeError, setLocaleError] = useState("");
|
|
11
10
|
|
|
@@ -30,5 +29,5 @@ export function useContactLocale() {
|
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
return { direction,
|
|
32
|
+
return { direction, isSwitchingLocale, localeError, toggleLocale };
|
|
34
33
|
}
|