@danielx/civet 0.11.1 → 0.11.3
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 +29 -0
- package/README.md +3 -0
- package/dist/browser.js +402 -234
- package/dist/civet +97 -43
- package/dist/config.js +3 -0
- package/dist/config.mjs +3 -0
- package/dist/main.js +511 -265
- package/dist/main.mjs +511 -265
- package/dist/types.d.ts +4 -0
- package/dist/unplugin/unplugin.js +193 -13
- package/dist/unplugin/unplugin.mjs +200 -13
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,35 @@ 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.3 (2026-02-25, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.2...v0.11.3), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.3))
|
|
8
|
+
* Fix REPL continuation prompt to `...`, clarifying indentation [[#1843](https://github.com/DanielXMoore/Civet/pull/1843)]
|
|
9
|
+
* Don't treat `package.js/civet` as config [[#1844](https://github.com/DanielXMoore/Civet/pull/1844)]
|
|
10
|
+
* BREAKING CHANGE: Civet can no longer be configured from a default export of `package.js` or `package.civet`
|
|
11
|
+
* Make typescript an optional peer dep, bundle @typescript/vfs [[#1842](https://github.com/DanielXMoore/Civet/pull/1842)]
|
|
12
|
+
* Tests for CLI output filename generation [[#1847](https://github.com/DanielXMoore/Civet/pull/1847)]
|
|
13
|
+
* `>` closes type arguments; forbid binary `x> y` [[#1848](https://github.com/DanielXMoore/Civet/pull/1848)]
|
|
14
|
+
* BREAKING CHANGE: `x> y` no longer compares; use `x>y` or `x > y`
|
|
15
|
+
* LSP: ensure immediate updates for opened dependent files on change [[#1779](https://github.com/DanielXMoore/Civet/pull/1779)]
|
|
16
|
+
* Spreads and multiple items in parenthesized postfix loops, postfixes in declarations [[#1849](https://github.com/DanielXMoore/Civet/pull/1849)]
|
|
17
|
+
* Syntax highlighting for import/export shorthands and `for` keywords [[#1580](https://github.com/DanielXMoore/Civet/pull/1580)]
|
|
18
|
+
* Implicit `async`, `AutoPromise`, `function*` propagate to overloads [[#1852](https://github.com/DanielXMoore/Civet/pull/1852)]
|
|
19
|
+
* Postfix support in parenthesized or indented function arguments [[#1853](https://github.com/DanielXMoore/Civet/pull/1853)]
|
|
20
|
+
* BREAKING CHANGE: Function application with a postfix on the last indented argument now applies the postfix to the argument, not the whole function application.
|
|
21
|
+
* Website playground: tab key insert tabs or indents, escape key defocuses [[#1626](https://github.com/DanielXMoore/Civet/pull/1626)]
|
|
22
|
+
|
|
23
|
+
## 0.11.2 (2026-01-21, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.1...v0.11.2), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.2))
|
|
24
|
+
* VSCode extension supports rename-symbol [[#1823](https://github.com/DanielXMoore/Civet/pull/1823)]
|
|
25
|
+
* Fix scoping of unwrapped statement expressions [[#1833](https://github.com/DanielXMoore/Civet/pull/1833)]
|
|
26
|
+
* Fix when pipelines can continue without indentation [[#1834](https://github.com/DanielXMoore/Civet/pull/1834)]
|
|
27
|
+
* BREAKING CHANGE: Binary operators can no longer be indented at the same level as pipeline (`|>`)
|
|
28
|
+
* Inline sourcemaps use new `outputFilename` option, set by CLI [[#1830](https://github.com/DanielXMoore/Civet/pull/1830)]
|
|
29
|
+
* `->` preserves return value whitespace/comment; support CoffeeScript comment blocks `###...###` anywhere `/*...*/` works [[#1831](https://github.com/DanielXMoore/Civet/pull/1831)]
|
|
30
|
+
* unplugin supports `?worker` imports in Vite 7 [[#1839](https://github.com/DanielXMoore/Civet/pull/1839)]
|
|
31
|
+
* Fix expressionized statement followed by binary operator [[#1836](https://github.com/DanielXMoore/Civet/pull/1836)]
|
|
32
|
+
* Fix tight binary XOR `^` treated as named binding pattern [[#1837](https://github.com/DanielXMoore/Civet/pull/1837)]
|
|
33
|
+
* Infer partial object/array types from initializers [[#1838](https://github.com/DanielXMoore/Civet/pull/1838)]
|
|
34
|
+
* unplugin fix Vite HMR with `?query` [[#1840](https://github.com/DanielXMoore/Civet/pull/1840)]
|
|
35
|
+
|
|
7
36
|
## 0.11.1 (2025-12-05, [diff](https://github.com/DanielXMoore/Civet/compare/v0.11.0...v0.11.1), [commits](https://github.com/DanielXMoore/Civet/commits/v0.11.1))
|
|
8
37
|
* Don't unwrap statement expressions that might be short-circuited [[#1821](https://github.com/DanielXMoore/Civet/pull/1821)]
|
|
9
38
|
|
package/README.md
CHANGED
|
@@ -46,6 +46,9 @@ civet < source.civet > output.ts
|
|
|
46
46
|
civet source.civet ...args...
|
|
47
47
|
# Execute a .civet source file in node
|
|
48
48
|
node --import @danielx/civet/register source.civet
|
|
49
|
+
# Type check entire project, which requires TypeScript installed
|
|
50
|
+
npm install -g typescript
|
|
51
|
+
civet --typecheck
|
|
49
52
|
```
|
|
50
53
|
|
|
51
54
|

|