create-warlock 5.35.0 → 5.37.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 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 4.1.10. See the generated `testing-strategy` skill for
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.35.0",
16
+ "@warlock.js/fs": "5.37.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.35.0",
25
+ "version": "5.37.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 4.1.10. See the generated `testing-strategy` skill for
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
 
@@ -46,7 +46,7 @@
46
46
  "@mongez/agent-kit": "^1.3.1",
47
47
  "@types/node": "^25.0.3",
48
48
  "typescript": "7.0.2",
49
- "vitest": "4.1.10",
49
+ "vitest": "5.0.3",
50
50
  "oxlint": "1.88.0",
51
51
  "oxfmt": "0.73.0"
52
52
  }
@@ -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, translate, isSwitchingLocale, localeError, toggleLocale } = useContactLocale();
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, useTrans } from "@warlock.js/web";
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, translate, isSwitchingLocale, localeError, toggleLocale };
32
+ return { direction, isSwitchingLocale, localeError, toggleLocale };
34
33
  }