@danielx/civet 0.11.9 → 0.11.11

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,47 +4,88 @@ This changelog is generated automatically by [`build/changelog.civet`](build/cha
4
4
  For each version of Civet, it lists and links to all incorporated PRs,
5
5
  as well as a full diff and commit list.
6
6
 
7
+ ## 0.11.11 (2026-05-24, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.10...v0.11.11), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.11))
8
+ * Dev: typecheck-diff in CI [[#2083](https://github.com/DanielXMoore/Civet/pull/2083)]
9
+ * Add comptime Float16Array support [[#2084](https://github.com/DanielXMoore/Civet/pull/2084)]
10
+ * tree-sitter: fix triple-quote and triple-backtick parsing [[#2081](https://github.com/DanielXMoore/Civet/pull/2081)]
11
+ * LSP: add `--version` / `--help` flags, default to `--stdio` [[#2082](https://github.com/DanielXMoore/Civet/pull/2082)]
12
+ * LSP: improve compatibility by renaming duplicate named groups in import-path regex [[#2086](https://github.com/DanielXMoore/Civet/pull/2086)]
13
+ * CI typecheck: rebuild base in its own worktree [[#2085](https://github.com/DanielXMoore/Civet/pull/2085)]
14
+ * CI: Clarify typecheck-diff output [[#2087](https://github.com/DanielXMoore/Civet/pull/2087)]
15
+ * Dev: Reduce type errors by 50 [[#2088](https://github.com/DanielXMoore/Civet/pull/2088)]
16
+ * Dev: Update @danielx/hera 0.9.2 → 0.9.7 [[#2038](https://github.com/DanielXMoore/Civet/pull/2038)]
17
+ * Dev: Remove legacy .civet/hera-plugin.mjs [[#2089](https://github.com/DanielXMoore/Civet/pull/2089)]
18
+ * CLI: parallelize compile loop [[#2080](https://github.com/DanielXMoore/Civet/pull/2080)]
19
+ * Dev: Property children false-leak + literal-leaf type tags [[#2090](https://github.com/DanielXMoore/Civet/pull/2090)]
20
+ * fix: `try … catch` in expression position crashes insertReturn (#2093) [[#2095](https://github.com/DanielXMoore/Civet/pull/2095)]
21
+ * Grammar: align `const`/`let`/`var` and template-expression scopes with JS [[#2094](https://github.com/DanielXMoore/Civet/pull/2094)]
22
+ * Dev: Exclude lsp/zed/grammars from coverage scans [[#2096](https://github.com/DanielXMoore/Civet/pull/2096)]
23
+ * Add -w/--watch flag for continuous compilation [[#2048](https://github.com/DanielXMoore/Civet/pull/2048)]
24
+ * Sublime Text: add `lsp/sublime/` dev-install package [[#2097](https://github.com/DanielXMoore/Civet/pull/2097)]
25
+ * Support destructuring-style imports with rest and nested patterns [[#2092](https://github.com/DanielXMoore/Civet/pull/2092)]
26
+ * Drop results accumulator from postfix-for when value is discarded [[#2098](https://github.com/DanielXMoore/Civet/pull/2098)]
27
+ * Fix unicode identifiers in shorthand object forms [[#2102](https://github.com/DanielXMoore/Civet/pull/2102)]
28
+ * Fix BigInt ranges as values and in exclusive for-of forms [[#2103](https://github.com/DanielXMoore/Civet/pull/2103)]
29
+ * Add esBraceBlock flag so `=> {…}` is a block, not an object [[#2104](https://github.com/DanielXMoore/Civet/pull/2104)]
30
+ * feat: support declaration types in coffeeForLoops (#583) [[#2101](https://github.com/DanielXMoore/Civet/pull/2101)]
31
+ * Add `array[?]` shorthand for random element selection [[#2105](https://github.com/DanielXMoore/Civet/pull/2105)]
32
+ * Coffee classes: `name: value` colon form becomes prototype assignment [[#2107](https://github.com/DanielXMoore/Civet/pull/2107)]
33
+
34
+ ## 0.11.10 (2026-05-18, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.9...v0.11.10), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.10))
35
+ * Coverage: re-enable `--parallel` for test runs [[#2064](https://github.com/DanielXMoore/Civet/pull/2064)]
36
+ * LSP: implement workspace/symbol [[#2049](https://github.com/DanielXMoore/Civet/pull/2049)]
37
+ * Fix reserved word ref creation [[#2076](https://github.com/DanielXMoore/Civet/pull/2076)]
38
+ * Dev: add `pnpm test:grep` script and document bootstrapping binaries [[#2079](https://github.com/DanielXMoore/Civet/pull/2079)]
39
+ * Coffee classes: backtrack on `:symbol` LHS so `[Symbol.x]` wraps [[#2077](https://github.com/DanielXMoore/Civet/pull/2077)]
40
+ * LSP: fix missing line/column info by unwrapping ParseErrors [[#2075](https://github.com/DanielXMoore/Civet/pull/2075)]
41
+ * LSP: skip semantic tokens in unmapped TS prelude code [[#2070](https://github.com/DanielXMoore/Civet/pull/2070)]
42
+ * Fix `x.literal` shorthand [[#2074](https://github.com/DanielXMoore/Civet/pull/2074)]
43
+ * LSP: emit semantic tokens for import binding names [[#2071](https://github.com/DanielXMoore/Civet/pull/2071)]
44
+ * Sourcemap: walk back in `remapPosition` when line has no mapping [[#2066](https://github.com/DanielXMoore/Civet/pull/2066)]
45
+ * LSP: warn + narrow scope when project has no tsconfig.json [[#2078](https://github.com/DanielXMoore/Civet/pull/2078)]
46
+ * LSP handlers for `signatureHelp`, `prepareRename`, `documentHighlight`, `typeDefinition`, `implementation`, `foldingRange`, `selectionRange`, `linkedEditingRange` [[#2069](https://github.com/DanielXMoore/Civet/pull/2069)]
47
+
7
48
  ## 0.11.9 (2026-05-14, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.8...v0.11.9), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.9))
8
49
  * Browser LSP: fix `console` types in non-DOM mode [[#2047](https://github.com/DanielXMoore/Civet/pull/2047)]
9
50
  * LSP e2e: fix Linux test reliability (Wayland headless + flaky import-completion) [[#2050](https://github.com/DanielXMoore/Civet/pull/2050)]
10
- * Tests: force v8 coverage flush before mocha worker exit [[#2056](https://github.com/DanielXMoore/Civet/pull/2056)]
51
+ * Tests: force V8 coverage flush before mocha worker exit [[#2056](https://github.com/DanielXMoore/Civet/pull/2056)]
11
52
  * CI: rolling cache keys + prune stale entries [[#2057](https://github.com/DanielXMoore/Civet/pull/2057)]
12
- * Fix unicode property names in `@`-bind, `::` prototype access, `:` symbol shortand [[#2055](https://github.com/DanielXMoore/Civet/pull/2055)]
13
- * fix(coverage): eliminate flakiness from parallel mocha + dual-compile [[#2060](https://github.com/DanielXMoore/Civet/pull/2060)]
14
- * Restore leaf-glom fallback in `prepend` (fixes #2058) [[#2059](https://github.com/DanielXMoore/Civet/pull/2059)]
53
+ * Fix Unicode property names in `@`-bind, `::` prototype access, `:` symbol shorthand [[#2055](https://github.com/DanielXMoore/Civet/pull/2055)]
54
+ * Coverage: eliminate flakiness from parallel mocha + dual-compile [[#2060](https://github.com/DanielXMoore/Civet/pull/2060)]
55
+ * Restore leaf-glom fallback in `prepend` [[#2059](https://github.com/DanielXMoore/Civet/pull/2059)]
15
56
  * Upgrade Prettier, add `civet.dev` workspace [[#2063](https://github.com/DanielXMoore/Civet/pull/2063)]
16
- * fix: unwrap if/then/else assignment to ternary without ref (#2051) [[#2054](https://github.com/DanielXMoore/Civet/pull/2054)]
57
+ * Fix: unwrap if/then/else assignment to ternary without ref [[#2054](https://github.com/DanielXMoore/Civet/pull/2054)]
17
58
 
18
59
  ## 0.11.8 (2026-05-13, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.7...v0.11.8), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.8))
19
- * Dev: Autopublish vsce and ovsx from GitHub CI [[#1963](https://github.com/DanielXMoore/Civet/pull/1963)]
20
- * dev: show-uncovered script at root [[#1966](https://github.com/DanielXMoore/Civet/pull/1966)]
21
- * ci: upgrade claude; track output in s3 [[#1975](https://github.com/DanielXMoore/Civet/pull/1975)]
22
- * lsp: auto-reload TSService when tsconfig.json changes [[#1965](https://github.com/DanielXMoore/Civet/pull/1965)]
23
- * dev: coverage template and branch coverage report [[#1971](https://github.com/DanielXMoore/Civet/pull/1971)]
60
+ * Dev: autopublish vsce and ovsx from GitHub CI [[#1963](https://github.com/DanielXMoore/Civet/pull/1963)]
61
+ * Dev: show-uncovered script at root [[#1966](https://github.com/DanielXMoore/Civet/pull/1966)]
62
+ * CI: upgrade Claude; track output in S3 [[#1975](https://github.com/DanielXMoore/Civet/pull/1975)]
63
+ * LSP: auto-reload TSService when tsconfig.json changes [[#1965](https://github.com/DanielXMoore/Civet/pull/1965)]
64
+ * Dev: coverage template and branch coverage report [[#1971](https://github.com/DanielXMoore/Civet/pull/1971)]
24
65
  * Remove legacy esbuild-plugin; JS output extensions imply --js [[#1976](https://github.com/DanielXMoore/Civet/pull/1976)]
25
66
  * Coverage: 100% for generate.civet and sourcemap.civet [[#1974](https://github.com/DanielXMoore/Civet/pull/1974)]
26
- * test: increase coverage for compiler core (main, config, worker-pool, esm) [[#1972](https://github.com/DanielXMoore/Civet/pull/1972)]
67
+ * Test: increase coverage for compiler core (main, config, worker-pool, esm) [[#1972](https://github.com/DanielXMoore/Civet/pull/1972)]
27
68
  * Coverage: unplugin & build plugins — 100% line coverage [[#1973](https://github.com/DanielXMoore/Civet/pull/1973)]
28
- * ci: migrate to codecov [[#1978](https://github.com/DanielXMoore/Civet/pull/1978)]
29
- * ci: batched dot reporter [[#1977](https://github.com/DanielXMoore/Civet/pull/1977)]
30
- * test: increase parser transform coverage to 97% [[#1982](https://github.com/DanielXMoore/Civet/pull/1982)]
31
- * fix: LSP stale diagnostics on close/delete, add protocol test harness [[#1980](https://github.com/DanielXMoore/Civet/pull/1980)]
32
- * test(cli): add coverage for piped stdin, --config, --typecheck [[#1981](https://github.com/DanielXMoore/Civet/pull/1981)]
69
+ * CI: migrate to Codecov [[#1978](https://github.com/DanielXMoore/Civet/pull/1978)]
70
+ * CI: batched dot reporter [[#1977](https://github.com/DanielXMoore/Civet/pull/1977)]
71
+ * Test: increase parser transform coverage to 97% [[#1982](https://github.com/DanielXMoore/Civet/pull/1982)]
72
+ * Fix LSP stale diagnostics on close/delete, add protocol test harness [[#1980](https://github.com/DanielXMoore/Civet/pull/1980)]
73
+ * Test (CLI): add coverage for piped stdin, --config, --typecheck [[#1981](https://github.com/DanielXMoore/Civet/pull/1981)]
33
74
  * Test coverage for CLI and REPL [[#1983](https://github.com/DanielXMoore/Civet/pull/1983)]
34
75
  * Reforbid comma in `:=` shorthand [[#1987](https://github.com/DanielXMoore/Civet/pull/1987)]
35
76
  * Preserve quotes in method signature names [[#1989](https://github.com/DanielXMoore/Civet/pull/1989)]
36
77
  * Fix `case` list with newline before comma [[#1991](https://github.com/DanielXMoore/Civet/pull/1991)]
37
- * add helix config details [[#1992](https://github.com/DanielXMoore/Civet/pull/1992)]
78
+ * Add Helix config details [[#1992](https://github.com/DanielXMoore/Civet/pull/1992)]
38
79
  * Fix `asserts` in interface call signature return type [[#1994](https://github.com/DanielXMoore/Civet/pull/1994)]
39
- * fix: change zed extension grammar repository to github url [[#1996](https://github.com/DanielXMoore/Civet/pull/1996)]
40
- * add pnpm typecheck for .civet + .hera files, refactor types.civet onto shared bases [[#1995](https://github.com/DanielXMoore/Civet/pull/1995)]
41
- * don't lose claude logs when hitting max turns [[#2005](https://github.com/DanielXMoore/Civet/pull/2005)]
80
+ * Zed: point extension grammar repo to GitHub URL [[#1996](https://github.com/DanielXMoore/Civet/pull/1996)]
81
+ * Add `pnpm typecheck` for `.civet` + `.hera` files; refactor `types.civet` onto shared bases [[#1995](https://github.com/DanielXMoore/Civet/pull/1995)]
82
+ * CI: don't lose Claude logs when hitting max turns [[#2005](https://github.com/DanielXMoore/Civet/pull/2005)]
42
83
  * Upgrade @danielx/hera 0.8.20 → 0.9.0 [[#2006](https://github.com/DanielXMoore/Civet/pull/2006)]
43
84
  * CLI lazy loads unplugin, fix race, allow symlink failure on Windows [[#2007](https://github.com/DanielXMoore/Civet/pull/2007)]
44
- * Remove some unnecessary boolean checks [[#2008](https://github.com/DanielXMoore/Civet/pull/2008)]
85
+ * Remove unnecessary boolean checks [[#2008](https://github.com/DanielXMoore/Civet/pull/2008)]
45
86
  * Semantic tokens for comments, fixing `coffeeComment` syntax highlighting [[#2011](https://github.com/DanielXMoore/Civet/pull/2011)]
46
87
  * Document optional elements in tuple types [[#2012](https://github.com/DanielXMoore/Civet/pull/2012)]
47
- * ci: separate typecheck step [[#2013](https://github.com/DanielXMoore/Civet/pull/2013)]
88
+ * CI: separate typecheck step [[#2013](https://github.com/DanielXMoore/Civet/pull/2013)]
48
89
  * Add typecheck iteration tooling [[#2014](https://github.com/DanielXMoore/Civet/pull/2014)]
49
90
  * Fix `typeof` types consuming top-level assignments [[#2017](https://github.com/DanielXMoore/Civet/pull/2017)]
50
91
  * Fix computed index side effects evaluated twice in compound assignment expressions [[#1885](https://github.com/DanielXMoore/Civet/pull/1885)]
@@ -52,9 +93,9 @@ as well as a full diff and commit list.
52
93
  * VSCode basic syntax highlighting for `type`/`interface` [[#2022](https://github.com/DanielXMoore/Civet/pull/2022)]
53
94
  * Fix implicit return of `abstract class` mixin body [[#2020](https://github.com/DanielXMoore/Civet/pull/2020)]
54
95
  * Fix LSP `@` shorthand incorrectly completing as `@this.member` [[#2032](https://github.com/DanielXMoore/Civet/pull/2032)]
55
- * test(ci): reduce Windows mocha flakes via worker cap + warmup hook [[#2033](https://github.com/DanielXMoore/Civet/pull/2033)]
56
- * LSP: Fix `@` completion in implicit return context [[#2034](https://github.com/DanielXMoore/Civet/pull/2034)]
57
- * svelte lang="civet" support in vscode extension [[#2021](https://github.com/DanielXMoore/Civet/pull/2021)]
96
+ * Test (CI): reduce Windows mocha flakes via worker cap + warmup hook [[#2033](https://github.com/DanielXMoore/Civet/pull/2033)]
97
+ * LSP: fix `@` completion in implicit return context [[#2034](https://github.com/DanielXMoore/Civet/pull/2034)]
98
+ * VSCode: support `lang="civet"` in Svelte components [[#2021](https://github.com/DanielXMoore/Civet/pull/2021)]
58
99
  * Fix unplugin + esbuild sourcemap source paths when using library [[#2035](https://github.com/DanielXMoore/Civet/pull/2035)]
59
100
  * Make Import rule express its intent via NonIdContinue [[#2037](https://github.com/DanielXMoore/Civet/pull/2037)]
60
101
  * Allow non-identifier Unicode codepoints as identifiers [[#2036](https://github.com/DanielXMoore/Civet/pull/2036)]
@@ -24,7 +24,7 @@ __export(babel_plugin_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(babel_plugin_exports);
26
26
  var import_main = require("./main.js");
27
- function babel_plugin_default(api, civetOptions) {
27
+ function babel_plugin_default(_api, civetOptions = {}) {
28
28
  return {
29
29
  parserOverride(code, opts, parse) {
30
30
  let src;
@@ -1,6 +1,6 @@
1
1
  // source/babel-plugin.civet
2
2
  import { compile } from "./main.mjs";
3
- function babel_plugin_default(api, civetOptions) {
3
+ function babel_plugin_default(_api, civetOptions = {}) {
4
4
  return {
5
5
  parserOverride(code, opts, parse) {
6
6
  let src;