create-elemix-app 0.9.0-dev.23 → 0.9.0-dev.24

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/index.js +23 -11
  3. package/package.json +1 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,217 @@
1
+ # Changelog
2
+
3
+ All notable changes to elemix and its companion packages are documented here. They
4
+ share one version and release together, so they share one changelog. The format
5
+ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
+ and this project adheres to [Semantic Versioning](https://semver.org/) when it suits me 😂😂😂.
7
+
8
+ > The [Roadmap](https://github.com/neuralfog/elemix/blob/main/ROADMAP.md) is the full
9
+ > log of development.
10
+
11
+ ## [0.9.0-dev.23] - 2026-07-15
12
+
13
+ ### Added
14
+
15
+ - `create-elemix-app` - scaffold a new app from the official template (`npm create elemix-app`)
16
+ - VS Code `.vsix` attached to GitHub Releases, plus a Marketplace link in the release notes
17
+
18
+ ### Changed
19
+
20
+ - Marketplace publish is skipped when the version is already published
21
+
22
+ ## [0.9.0-dev.22] - 2026-07-14
23
+
24
+ ### Added
25
+
26
+ - VS Code extension on the Marketplace
27
+
28
+ ### Changed
29
+
30
+ - Format on save is now an editor toggle, not `elemix.toml`
31
+
32
+ ## [0.9.0-dev.21] - 2026-07-14
33
+
34
+ ### Added
35
+
36
+ - Neovim editor extension
37
+ - Vscode editor extension
38
+
39
+ ### Changed
40
+
41
+ - Formatter is configured from `elemix.toml` (`[formatter]`) this includes editor extensions
42
+
43
+ ### Fixed
44
+
45
+ - Vite plugin now compiles a file whose only hint is `// #shadow`
46
+
47
+ ## [0.9.0-dev.20] - 2026-07-11
48
+
49
+ ### Fixed
50
+
51
+ - Storybook: `elemixDecorator` no longer pre-mounts the story into `#storybook-root`; it renders into a detached host that Storybook mounts itself. Under the Vitest runner the canvas is a per-test element, so the old pre-mount left the component connected to the wrong tree and a subsequent move disconnected it - tearing down its reactive scopes, so interactions stopped updating the DOM
52
+
53
+ ## [0.9.0-dev.19] - 2026-07-11
54
+
55
+ ### Added
56
+
57
+ - New `@neuralfog/elemix-testing-library`: shadow-piercing queries (`/query`), real DOM events (`/events`), and `expect`/`waitFor` assertions
58
+
59
+ ### Changed
60
+
61
+ - Compiler conformance stories now assert with `@neuralfog/elemix-testing-library` instead of `storybook/test`
62
+ - Compiler conformance stories now run headless across Chromium, Firefox, and WebKit (Safari's engine)
63
+ - Isolated `Component` internals behind a `$$__` prefix so user code can no longer shadow them
64
+
65
+ ## [0.9.0-dev.18] - 2026-07-10
66
+
67
+ ### Added
68
+
69
+ - Free-standing templates: a `tpl` outside a component now compiles to an inline builder
70
+
71
+ ### Changed
72
+
73
+ - Updated dependencies to their latest versions and TypeScript 7
74
+ - Updated the Rust toolchain and crate dependencies
75
+
76
+ ### Fixed
77
+
78
+ - Storybook: `ElemixStory` now exposes every property of the underlying story type (`play`, `beforeEach`, `tags`, ...) instead of a hand-picked subset; removed the dead `setup` hook (`beforeRender`/`afterRender` remain)
79
+
80
+ ## [0.9.0-dev.17] - 2026-07-10
81
+
82
+ ### Added
83
+
84
+ - Formatter: new `@neuralfog/elemix-template-formatter` (`etf`) - a native formatter for the HTML inside `tpl`` templates
85
+
86
+ ### Changed
87
+
88
+ - Compiler: the emitted registration call is now `$__defineComponent`, completing the `$__` prefixing of runtime imports
89
+
90
+ ## [0.9.0-dev.16] - 2026-07-09
91
+
92
+ ### Fixed
93
+
94
+ - Analyzer: `#`/aliased imports from tsconfig `paths` now resolve, so an aliased component import no longer reads as a missing module
95
+
96
+ ## [0.9.0-dev.15] - 2026-07-09
97
+
98
+ ### Changed
99
+
100
+ - Compiler/Runtime: every runtime function the compiled output imports is now `$__` prefixed (`$__template`, `$__setText`, `$__state` etc) so it can't clash with a user's own module-scope names
101
+
102
+ ## [0.9.0-dev.14] - 2026-07-08
103
+
104
+ ### Added
105
+
106
+ - Runtime: new `match` directive - exhaustive pattern matching for templates. Works on string unions, enums, and tagged object unions (each branch gets the narrowed value)
107
+ - Analyzer: flags a missing case, a wrong case, or a non-finite value (like a plain `string`). Use `choose` for open conditions
108
+
109
+ ### Changed
110
+
111
+ - Compiler: primitive `#state` backing fields are now prefixed (`#__count`) so they can't clash with your own private properties
112
+
113
+ ## [0.9.0-dev.13] - 2026-07-07
114
+
115
+ ### Added
116
+
117
+ - Runtime: `createApp(root?)` bootstrap with chainable `.config({ … })` / `.mount(target?)`; app-wide config lives on `window.__elemix__` (the root and both calls are optional, so `createApp().config({ … })` is valid)
118
+ - Runtime: automatic cloaking - elemix adopts a `[data-cloak], :not(:defined) { visibility: hidden }` stylesheet so elements don't flash before they upgrade and mount, with no per-app CSS; `config({ cloak: '…' })` replaces the rule with a custom CSS string
119
+ - Runtime: `config({ shadow: false })` makes components render to light DOM by default (shadow DOM stays the default otherwise)
120
+ - Compiler: new `#shadow` hint forces a shadow root even under a light-DOM default; it is mutually exclusive with `#no-shadow`, and using both on one component is a compile error
121
+ - Analyzer: reports `#shadow` and `#no-shadow` on the same component as an error
122
+
123
+ ### Changed
124
+
125
+ - Storybook: ditched lit - `@neuralfog/elemix-storybook` and the storybook config now run on `@storybook/html-vite` instead of `@storybook/web-components-vite`, dropping lit-html from the dependency tree entirely (elemix always rendered plain string/Node, so lit was never used)
126
+
127
+ ## [0.9.0-dev.12] - 2026-06-30
128
+
129
+ ### Fixed
130
+
131
+ - Runtime: custom events (`@my-event`) now work; `_event` falls back to `addEventListener` when there is no `on*` property
132
+
133
+ ## [0.9.0-dev.11] - 2026-06-30
134
+
135
+ ### Fixed
136
+
137
+ - Compiler: multi-root conditional branches now render every root (only the first was kept before)
138
+
139
+ ## [0.9.0-dev.10] - 2026-06-30
140
+
141
+ ### Fixed
142
+
143
+ - Compiler: helper templates are now inlined inside a method-form `template()` (the splice pre-pass previously only saw the `template = () =>` arrow field, so helpers in a method template were left as runtime calls returning uncompiled `tpl` and threw)
144
+ - Compiler: a helper call nested inside another template (e.g. a `${cond ? tpl\`…${this.row(x)}…\` : tpl\`\`}` branch) is now inlined; the splice recurses into nested template holes instead of copying them verbatim
145
+
146
+ ## [0.9.0-dev.9] - 2026-06-30
147
+
148
+ ### Fixed
149
+
150
+ - Compiler: a `template()` method now lowers to `view()` like the `template = () =>` arrow field; previously only the arrow field was compiled, so the method form was left uncompiled and threw at runtime
151
+
152
+ ## [0.9.0-dev.8] - 2026-06-24
153
+
154
+ ### Added
155
+
156
+ - `@neuralfog/elemix-analyzer` - static analysis tool for elemix
157
+
158
+ ## [0.9.0-dev.7] - 2026-06-22
159
+
160
+ ### Changed
161
+
162
+ - WASM package ships its own README
163
+
164
+ ## [0.9.0-dev.6] - 2026-06-22
165
+
166
+ ### Added
167
+
168
+ - Prebuilt binaries attached to every GitHub release
169
+
170
+ ## [0.9.0-dev.5] - 2026-06-22
171
+
172
+ ### Fixed
173
+
174
+ - Compiler hint detection in the Vite plugin
175
+
176
+ ## [0.9.0-dev.4] - 2026-06-22
177
+
178
+ ### Added
179
+
180
+ - Compiler hints: `#component`/`#tag`/`#form`/`#no-shadow`/`#styles`/`#state`/`#effect` + lifecycle `#before-mount`/`#mount`/`#dispose`
181
+ - Reactive primitives in component `#state` (`count = 0` stays reactive)
182
+ - Component inheritance - hooks/effects chain through `super`, stylesheets merge
183
+ - Collections in reactive state (`Set`/`Map`/`WeakSet`/`WeakMap`), classes in state, `raw()` helper
184
+ - Source maps back to the original source
185
+ - Inlined compiler diagnostics with `--strict`; CLI version banner
186
+
187
+ ### Changed
188
+
189
+ - Performance optimisations
190
+
191
+ ### Fixed
192
+
193
+ - Nested arrays in deep state, template-less pragma components, statements before `return`, dangling `Cargo.lock`
194
+
195
+ ## [0.9.0-dev.3] - 2026-06-16
196
+
197
+ ### Added
198
+
199
+ - Comment pragmas, effects, source maps
200
+
201
+ ## [0.9.0-dev.2] - 2026-06-15
202
+
203
+ ### Added
204
+
205
+ - Compiler hints
206
+
207
+ ## [0.9.0-dev.1] - 2026-06-14
208
+
209
+ ### Added
210
+
211
+ - Optimisations
212
+
213
+ ## [0.9.0-dev.0] - 2026-06-14
214
+
215
+ ### Added
216
+
217
+ - Initial release: compiled renderer
package/dist/index.js CHANGED
@@ -25,8 +25,10 @@ var version = () => {
25
25
  };
26
26
  var banner = () => {
27
27
  process.stderr.write("\n");
28
- process.stderr.write(` ${mark} ${c.bold}elemix${c.reset} ${c.dim}\xB7${c.reset} create app
29
- `);
28
+ process.stderr.write(
29
+ ` ${mark} ${c.bold}elemix${c.reset} ${c.dim}\xB7${c.reset} create app
30
+ `
31
+ );
30
32
  process.stderr.write(` ${mark} ${c.dim}v${version()}${c.reset}
31
33
  `);
32
34
  process.stderr.write("\n");
@@ -38,12 +40,18 @@ var die = (message) => {
38
40
  process.exit(1);
39
41
  };
40
42
  var ask = (question, fallback) => {
41
- const rl = createInterface({ input: process.stdin, output: process.stderr });
43
+ const rl = createInterface({
44
+ input: process.stdin,
45
+ output: process.stderr
46
+ });
42
47
  return new Promise((res) => {
43
- rl.question(` ${mark} ${question} ${c.dim}(${fallback})${c.reset} `, (answer) => {
44
- rl.close();
45
- res(answer.trim() || fallback);
46
- });
48
+ rl.question(
49
+ ` ${mark} ${question} ${c.dim}(${fallback})${c.reset} `,
50
+ (answer) => {
51
+ rl.close();
52
+ res(answer.trim() || fallback);
53
+ }
54
+ );
47
55
  });
48
56
  };
49
57
  var hasGit = () => {
@@ -65,8 +73,10 @@ var main = async () => {
65
73
  if (existsSync(dir) && readdirSync(dir).length > 0) {
66
74
  die(`${name} already exists and is not empty.`);
67
75
  }
68
- process.stderr.write(` ${mark} cloning template into ${c.bold}${name}${c.reset}
69
- `);
76
+ process.stderr.write(
77
+ ` ${mark} cloning template into ${c.bold}${name}${c.reset}
78
+ `
79
+ );
70
80
  try {
71
81
  execFileSync("git", ["clone", "--depth", "1", TEMPLATE, dir], {
72
82
  stdio: "ignore"
@@ -75,10 +85,12 @@ var main = async () => {
75
85
  die(`failed to clone ${TEMPLATE}`);
76
86
  }
77
87
  rmSync(join(dir, ".git"), { recursive: true, force: true });
78
- process.stderr.write(`
88
+ process.stderr.write(
89
+ `
79
90
  ${c.green}\u2713${c.reset} ${c.bold}${name}${c.reset} is ready
80
91
 
81
- `);
92
+ `
93
+ );
82
94
  process.stderr.write(` ${c.dim}next steps${c.reset}
83
95
  `);
84
96
  process.stderr.write(` cd ${name}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-elemix-app",
3
- "version": "0.9.0-dev.23",
3
+ "version": "0.9.0-dev.24",
4
4
  "description": "Scaffold a new elemix app from the official template.",
5
5
  "license": "MIT",
6
6
  "author": "brownhounds",