@danielx/civet 0.11.7 → 0.11.8
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 +52 -0
- package/README.md +3 -7
- package/dist/browser.js +23954 -9243
- package/dist/browser.min.js +1 -0
- package/dist/cache.js +128 -0
- package/dist/cache.mjs +89 -0
- package/dist/civet +56 -8
- package/dist/main.js +37647 -12195
- package/dist/main.mjs +37647 -12195
- package/dist/ts-diagnostic.js +41 -0
- package/dist/ts-diagnostic.mjs +40 -0
- package/dist/ts-service/index.js +1239 -0
- package/dist/ts-service/index.js.map +7 -0
- package/dist/ts-service/index.mjs +1188 -0
- package/dist/ts-service/index.mjs.map +7 -0
- package/dist/types.d.ts +0 -14
- package/dist/unplugin/unplugin.d.ts +28 -1
- package/dist/unplugin/unplugin.js +269 -276
- package/dist/unplugin/unplugin.mjs +270 -282
- package/package.json +43 -20
- package/dist/esbuild-plugin.js +0 -131
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,58 @@ 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.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))
|
|
8
|
+
* Dev: Autopublish vsce and ovsx from GitHub CI [[#1963](https://github.com/DanielXMoore/Civet/pull/1963)]
|
|
9
|
+
* dev: show-uncovered script at root [[#1966](https://github.com/DanielXMoore/Civet/pull/1966)]
|
|
10
|
+
* ci: upgrade claude; track output in s3 [[#1975](https://github.com/DanielXMoore/Civet/pull/1975)]
|
|
11
|
+
* lsp: auto-reload TSService when tsconfig.json changes [[#1965](https://github.com/DanielXMoore/Civet/pull/1965)]
|
|
12
|
+
* dev: coverage template and branch coverage report [[#1971](https://github.com/DanielXMoore/Civet/pull/1971)]
|
|
13
|
+
* Remove legacy esbuild-plugin; JS output extensions imply --js [[#1976](https://github.com/DanielXMoore/Civet/pull/1976)]
|
|
14
|
+
* Coverage: 100% for generate.civet and sourcemap.civet [[#1974](https://github.com/DanielXMoore/Civet/pull/1974)]
|
|
15
|
+
* test: increase coverage for compiler core (main, config, worker-pool, esm) [[#1972](https://github.com/DanielXMoore/Civet/pull/1972)]
|
|
16
|
+
* Coverage: unplugin & build plugins — 100% line coverage [[#1973](https://github.com/DanielXMoore/Civet/pull/1973)]
|
|
17
|
+
* ci: migrate to codecov [[#1978](https://github.com/DanielXMoore/Civet/pull/1978)]
|
|
18
|
+
* ci: batched dot reporter [[#1977](https://github.com/DanielXMoore/Civet/pull/1977)]
|
|
19
|
+
* test: increase parser transform coverage to 97% [[#1982](https://github.com/DanielXMoore/Civet/pull/1982)]
|
|
20
|
+
* fix: LSP stale diagnostics on close/delete, add protocol test harness [[#1980](https://github.com/DanielXMoore/Civet/pull/1980)]
|
|
21
|
+
* test(cli): add coverage for piped stdin, --config, --typecheck [[#1981](https://github.com/DanielXMoore/Civet/pull/1981)]
|
|
22
|
+
* Test coverage for CLI and REPL [[#1983](https://github.com/DanielXMoore/Civet/pull/1983)]
|
|
23
|
+
* Reforbid comma in `:=` shorthand [[#1987](https://github.com/DanielXMoore/Civet/pull/1987)]
|
|
24
|
+
* Preserve quotes in method signature names [[#1989](https://github.com/DanielXMoore/Civet/pull/1989)]
|
|
25
|
+
* Fix `case` list with newline before comma [[#1991](https://github.com/DanielXMoore/Civet/pull/1991)]
|
|
26
|
+
* add helix config details [[#1992](https://github.com/DanielXMoore/Civet/pull/1992)]
|
|
27
|
+
* Fix `asserts` in interface call signature return type [[#1994](https://github.com/DanielXMoore/Civet/pull/1994)]
|
|
28
|
+
* fix: change zed extension grammar repository to github url [[#1996](https://github.com/DanielXMoore/Civet/pull/1996)]
|
|
29
|
+
* add pnpm typecheck for .civet + .hera files, refactor types.civet onto shared bases [[#1995](https://github.com/DanielXMoore/Civet/pull/1995)]
|
|
30
|
+
* don't lose claude logs when hitting max turns [[#2005](https://github.com/DanielXMoore/Civet/pull/2005)]
|
|
31
|
+
* Upgrade @danielx/hera 0.8.20 → 0.9.0 [[#2006](https://github.com/DanielXMoore/Civet/pull/2006)]
|
|
32
|
+
* CLI lazy loads unplugin, fix race, allow symlink failure on Windows [[#2007](https://github.com/DanielXMoore/Civet/pull/2007)]
|
|
33
|
+
* Remove some unnecessary boolean checks [[#2008](https://github.com/DanielXMoore/Civet/pull/2008)]
|
|
34
|
+
* Semantic tokens for comments, fixing `coffeeComment` syntax highlighting [[#2011](https://github.com/DanielXMoore/Civet/pull/2011)]
|
|
35
|
+
* Document optional elements in tuple types [[#2012](https://github.com/DanielXMoore/Civet/pull/2012)]
|
|
36
|
+
* ci: separate typecheck step [[#2013](https://github.com/DanielXMoore/Civet/pull/2013)]
|
|
37
|
+
* Add typecheck iteration tooling [[#2014](https://github.com/DanielXMoore/Civet/pull/2014)]
|
|
38
|
+
* Fix `typeof` types consuming top-level assignments [[#2017](https://github.com/DanielXMoore/Civet/pull/2017)]
|
|
39
|
+
* Fix computed index side effects evaluated twice in compound assignment expressions [[#1885](https://github.com/DanielXMoore/Civet/pull/1885)]
|
|
40
|
+
* Extract shared @danielx/civet/ts-service module [[#2015](https://github.com/DanielXMoore/Civet/pull/2015)]
|
|
41
|
+
* VSCode basic syntax highlighting for `type`/`interface` [[#2022](https://github.com/DanielXMoore/Civet/pull/2022)]
|
|
42
|
+
* Fix implicit return of `abstract class` mixin body [[#2020](https://github.com/DanielXMoore/Civet/pull/2020)]
|
|
43
|
+
* Fix LSP `@` shorthand incorrectly completing as `@this.member` [[#2032](https://github.com/DanielXMoore/Civet/pull/2032)]
|
|
44
|
+
* test(ci): reduce Windows mocha flakes via worker cap + warmup hook [[#2033](https://github.com/DanielXMoore/Civet/pull/2033)]
|
|
45
|
+
* LSP: Fix `@` completion in implicit return context [[#2034](https://github.com/DanielXMoore/Civet/pull/2034)]
|
|
46
|
+
* svelte lang="civet" support in vscode extension [[#2021](https://github.com/DanielXMoore/Civet/pull/2021)]
|
|
47
|
+
* Fix unplugin + esbuild sourcemap source paths when using library [[#2035](https://github.com/DanielXMoore/Civet/pull/2035)]
|
|
48
|
+
* Make Import rule express its intent via NonIdContinue [[#2037](https://github.com/DanielXMoore/Civet/pull/2037)]
|
|
49
|
+
* Allow non-identifier Unicode codepoints as identifiers [[#2036](https://github.com/DanielXMoore/Civet/pull/2036)]
|
|
50
|
+
* Unicode escape sequences `\uXXXX` in identifiers [[#2041](https://github.com/DanielXMoore/Civet/pull/2041)]
|
|
51
|
+
* Monaco and browser LSP support; LSP in the Playground [[#2044](https://github.com/DanielXMoore/Civet/pull/2044)]
|
|
52
|
+
* BREAKING CHANGE: Neovim (and other direct users of the LSP server) need to use `dist/node.js` instead of `dist/server.js`
|
|
53
|
+
* Highlight docs examples using Civet TextMate grammar [[#2045](https://github.com/DanielXMoore/Civet/pull/2045)]
|
|
54
|
+
* Lift `&` past `for` body in `when` clause [[#2040](https://github.com/DanielXMoore/Civet/pull/2040)]
|
|
55
|
+
* Honor autoConst/autoLet for `export x = …`, allow `export` destructuring [[#2042](https://github.com/DanielXMoore/Civet/pull/2042)]
|
|
56
|
+
* Pin VS Code version for tests and cache key [[#2046](https://github.com/DanielXMoore/Civet/pull/2046)]
|
|
57
|
+
* LSP: auto-indent on Enter for Civet block-openers [[#2043](https://github.com/DanielXMoore/Civet/pull/2043)]
|
|
58
|
+
|
|
7
59
|
## 0.11.7 (2026-04-16, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.6...v0.11.7), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.7))
|
|
8
60
|
* Add full repo history to publish script checkout for changelog verification step [[#1930](https://github.com/DanielXMoore/Civet/pull/1930)]
|
|
9
61
|
* Build and test use sourcemaps and default to up to 4 threads [[#1931](https://github.com/DanielXMoore/Civet/pull/1931)]
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Civet
|
|
|
4
4
|
[](https://github.com/DanielXMoore/Civet/actions/workflows/build.yml)
|
|
5
5
|
[](https://www.npmjs.com/package/@danielx/civet)
|
|
6
6
|
[](https://www.npmjs.com/package/@danielx/civet)
|
|
7
|
-
[](https://codecov.io/gh/DanielXMoore/Civet)
|
|
8
8
|
[](https://discord.com/invite/xkrW9GebBc)
|
|
9
9
|
[](https://opencollective.com/civet)
|
|
10
10
|
|
|
@@ -18,10 +18,6 @@ The modern way to write TypeScript.
|
|
|
18
18
|
- [Discord Server](https://discord.gg/xkrW9GebBc)
|
|
19
19
|
- Plugins for
|
|
20
20
|
[Vite, esbuild, Astro, Farm, Rolldown, Rollup, Webpack](source/unplugin),
|
|
21
|
-
<!--
|
|
22
|
-
[esbuild](source/esbuild-plugin.civet),
|
|
23
|
-
[Vite](https://github.com/edemaine/vite-plugin-civet),
|
|
24
|
-
-->
|
|
25
21
|
[ESM/CJS loader](source/esm.civet),
|
|
26
22
|
[Babel](source/babel-plugin.civet),
|
|
27
23
|
[Jest](https://github.com/DanielXMoore/Civet/blob/main/integration/jest),
|
|
@@ -328,12 +324,12 @@ I strongly recommend using [esbuild](https://esbuild.github.io/) for building /
|
|
|
328
324
|
|
|
329
325
|
```javascript
|
|
330
326
|
import esbuild from 'esbuild'
|
|
331
|
-
import civetPlugin from '@danielx/civet/esbuild
|
|
327
|
+
import civetPlugin from '@danielx/civet/esbuild'
|
|
332
328
|
|
|
333
329
|
esbuild.build({
|
|
334
330
|
...,
|
|
335
331
|
plugins: [
|
|
336
|
-
civetPlugin
|
|
332
|
+
civetPlugin({ ts: 'preserve' })
|
|
337
333
|
]
|
|
338
334
|
}).catch(() => process.exit(1))
|
|
339
335
|
```
|