@lokascript/htmx-adapter 6.3.0 → 7.1.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 +104 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,107 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [7.1.0] - 2026-10-20
|
|
11
|
+
|
|
12
|
+
Each language's grammar is framework's data now (`@lokascript/framework/languages/<code>`), and
|
|
13
|
+
semantic's profiles extend it unchanged, so a domain can take a language's grammar without
|
|
14
|
+
hyperscript's. Installs get smaller: i18n and testing-framework stop pulling bundlers, browsers and
|
|
15
|
+
the repo's own gates.
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **`@lokascript/framework/languages/<code>`: each language's grammar, as data.** 24 modules, and a
|
|
20
|
+
`languages` barrel, export what holds for a language whatever a DSL says in it: its names,
|
|
21
|
+
direction, script, word order, marking strategy, spacing, role markers, verb placement,
|
|
22
|
+
tokenization particles, the default command-verb form, the markers it writes onto their word, and
|
|
23
|
+
how it builds "X's Y" (framework's new `GrammarProfile` type, a superset of `GrammarProfileSlice`).
|
|
24
|
+
They are plain objects with no side effects, in ESM and CJS. `@lokascript/semantic`'s 24 profiles
|
|
25
|
+
are now that grammar with hyperscript's vocabulary over it, so a domain can take a language's
|
|
26
|
+
grammar without importing semantic, whose `languages/<code>` also registers hyperscript's
|
|
27
|
+
tokenizer and patterns. No profile changed: all 24 are deep-equal to 7.0.0's, the 27,194 parses
|
|
28
|
+
of the command-shape corpus are unchanged, and the domains' gate reads every sentence as before.
|
|
29
|
+
Semantic's ESM files are smaller (the data is framework's); its browser bundles grew by at most
|
|
30
|
+
0.6 KB gzipped (0.3%) (#1602).
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **`npm run add-language` runs again.** The scaffolder read `__dirname` in an ES module and threw
|
|
35
|
+
before writing a file. It now also writes the language's grammar to framework (`--script` sets
|
|
36
|
+
the writing system, default `latin`) and the profile over it (#1602).
|
|
37
|
+
|
|
38
|
+
- **`@hyperfixi/mcp-server` no longer reports a stale build when it runs from npm.** At startup it
|
|
39
|
+
compares each `@hyperfixi/*` / `@lokascript/*` dependency's `src/` against its `dist/`, which
|
|
40
|
+
catches a monorepo package edited and not rebuilt. An npm or npx install ships `src/` too, and
|
|
41
|
+
writes it a few milliseconds after `dist/`, so every `npx @hyperfixi/mcp-server` launch (the
|
|
42
|
+
hyperfixi plugin's) called five packages stale and printed `npm run build` commands for the npx
|
|
43
|
+
cache. The check now runs only for packages that resolve outside `node_modules` (workspace
|
|
44
|
+
links); the check that refuses a tool call when a `dist/` changes under the running server is
|
|
45
|
+
unchanged (#1599).
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- **`@lokascript/i18n` no longer installs `vite`, `esbuild` and `happy-dom`.** They were runtime
|
|
50
|
+
`dependencies`, but nothing in the package imports them when it runs: the one use is a type, the
|
|
51
|
+
`Plugin` that `./plugins/vite` returns. So every install, `@lokascript/hyperscript-adapter`'s
|
|
52
|
+
optional one included, pulled a bundler and a DOM: 145 MB and 40 packages for i18n 7.0.0, against
|
|
53
|
+
about 74 MB and 11 without them (macOS arm64). They are devDependencies now, and `vite` is an
|
|
54
|
+
optional peer (`>=4.0.0`, as `@hyperfixi/vite-plugin` declares it), so the plugin's types
|
|
55
|
+
resolve where vite is installed (#1597).
|
|
56
|
+
|
|
57
|
+
- **`@hyperfixi/testing-framework` installs what its published files import: `diff` and `jsdom`.**
|
|
58
|
+
Its three entries (`.`, `./runner`, `./assertions`) import those two, and `runner` loads
|
|
59
|
+
`playwright` or `puppeteer` with `import()` only for a browser run. The other eleven runtime
|
|
60
|
+
dependencies (semantic, i18n, compilation-service, patterns-reference, vite, esbuild, happy-dom,
|
|
61
|
+
tsx, url-parse, and both browsers) back the repo's own gates, which are not in `dist/`: an
|
|
62
|
+
install was 262 MB in 116 packages, and puppeteer's install script downloaded Chrome on top
|
|
63
|
+
(`--ignore-scripts`, macOS arm64). Now about 28 MB in 38. `playwright` and `puppeteer` are
|
|
64
|
+
optional peers: install the one a browser run uses. The built files are byte-identical (#1598).
|
|
65
|
+
|
|
66
|
+
### Removed
|
|
67
|
+
|
|
68
|
+
- **`@hyperfixi/testing-framework`'s `hyperfixi-test` and `hyperfixi-test-multilingual` bins.**
|
|
69
|
+
They named `dist/cli.js` and `dist/multilingual/cli.js`, which the build has never produced, so
|
|
70
|
+
neither command ever ran from the package (#1598).
|
|
71
|
+
|
|
72
|
+
## [7.0.0] - 2026-10-19
|
|
73
|
+
|
|
74
|
+
Removes what 6.x deprecated or never shipped: three MCP tools that duplicated `validate_and_compile`
|
|
75
|
+
and `translate_code`, `@lokascript/compilation-service`'s HTTP layer and `generate()`, and the
|
|
76
|
+
unpublished VS Code extension. For every other package 7.0 is a renumber: `@lokascript/domains`
|
|
77
|
+
5.0.4 accepts it. MIGRATION.md has the 6.x → 7.0 table.
|
|
78
|
+
|
|
79
|
+
### Removed (BREAKING)
|
|
80
|
+
|
|
81
|
+
- **`@hyperfixi/mcp-server`: `validate_hyperscript`, `translate_hyperscript` and
|
|
82
|
+
`parse_multilingual`**, deprecated in 6.1.0 and 6.2.0. `validate_and_compile` and
|
|
83
|
+
`translate_code` replace them (MIGRATION.md has the 7.0 table). 93 tools defined, 88 listed by
|
|
84
|
+
default (96, 91).
|
|
85
|
+
- **`@lokascript/compilation-service/http`** (`createApp`, `serve`, `POST /validate` and the other
|
|
86
|
+
routes). Its one user, the chat app, now serves its own routes (lokascript-examples #23). `hono`
|
|
87
|
+
and `@hono/node-server` leave the package, so no mcp-server install carries them.
|
|
88
|
+
- **`CompilationService.generate()`** (the `intent-element` target) and `POST /generate`: nothing
|
|
89
|
+
called them.
|
|
90
|
+
- **`packages/vscode-extension`**, the LokaScript VS Code extension, which was never published. The
|
|
91
|
+
language server stays.
|
|
92
|
+
|
|
93
|
+
### Added
|
|
94
|
+
|
|
95
|
+
- **`@lokascript/compilation-service` exports `VERSION`.**
|
|
96
|
+
|
|
97
|
+
### Fixed
|
|
98
|
+
|
|
99
|
+
- **`@lokascript/semantic`: `transition … using "<css transition>"` translates in the verb-final
|
|
100
|
+
languages** (#1589). In bn, hi, ja, ko, qu and tr the duration slot, which has no marker there,
|
|
101
|
+
took the style's quoted string, so `translate()` refused the script, and the bare command did not
|
|
102
|
+
parse. A duration slot that takes only literals now leaves a quoted string to the style.
|
|
103
|
+
|
|
104
|
+
### Changed
|
|
105
|
+
|
|
106
|
+
- **`@hyperfixi/mcp-server` requires `@lokascript/domains` ^5.0.4**, which peers framework, semantic
|
|
107
|
+
and intent `^5.0.0 || ^6.0.0 || ^7.0.0` (lokascript-domains #60): the bridge that lets 7.0.0
|
|
108
|
+
publish. 5.0.3, which it required before, lets BehaviorSpec's `given` set every state `expect`
|
|
109
|
+
can check, and refuses an `expect` assertion it does not know (5.0.2 compiled it to a comment).
|
|
110
|
+
|
|
10
111
|
## [6.3.0] - 2026-10-18
|
|
11
112
|
|
|
12
113
|
The htmx adapter writes localized SSE and WebSocket attributes under the names the page's htmx
|
|
@@ -2093,7 +2194,9 @@ _Synchronized version release. See git history for details._
|
|
|
2093
2194
|
- npm access token stored in GitHub Secrets
|
|
2094
2195
|
- 2FA recommended for npm organization
|
|
2095
2196
|
|
|
2096
|
-
[Unreleased]: https://github.com/codetalcott/hyperfixi/compare/
|
|
2197
|
+
[Unreleased]: https://github.com/codetalcott/hyperfixi/compare/v7.1.0...HEAD
|
|
2198
|
+
[7.1.0]: https://github.com/codetalcott/hyperfixi/compare/v7.0.0...v7.1.0
|
|
2199
|
+
[7.0.0]: https://github.com/codetalcott/hyperfixi/compare/v6.3.0...v7.0.0
|
|
2097
2200
|
[6.3.0]: https://github.com/codetalcott/hyperfixi/compare/v6.2.0...v6.3.0
|
|
2098
2201
|
[6.2.0]: https://github.com/codetalcott/hyperfixi/compare/v6.1.0...v6.2.0
|
|
2099
2202
|
[6.1.0]: https://github.com/codetalcott/hyperfixi/compare/v6.0.0...v6.1.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokascript/htmx-adapter",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Multilingual adapter for upstream htmx v4 — author hx-* attributes in 24 languages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@playwright/test": "^1.
|
|
46
|
-
"@types/node": "^26.6.
|
|
47
|
-
"jsdom": "^30.1.
|
|
45
|
+
"@playwright/test": "^1.64.1",
|
|
46
|
+
"@types/node": "^26.6.5",
|
|
47
|
+
"jsdom": "^30.1.3",
|
|
48
48
|
"tsup": "^9.0.0",
|
|
49
49
|
"typescript": "^5.0.0",
|
|
50
|
-
"vitest": "^5.0.
|
|
50
|
+
"vitest": "^5.0.5"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist",
|