@danielx/civet 0.9.0 → 0.9.2
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 +11 -0
- package/dist/babel-plugin.js +6 -7
- package/dist/babel-plugin.mjs +3 -3
- package/dist/browser.js +4606 -9813
- package/dist/civet +11 -10
- package/dist/config.js +6 -7
- package/dist/config.mjs +3 -3
- package/dist/esbuild-plugin.js +6 -7
- package/dist/esm.mjs +1 -1
- package/dist/main.js +1151 -1135
- package/dist/main.mjs +1153 -1130
- package/dist/node-worker.mjs +29 -0
- package/dist/ts-diagnostic.js +5 -8
- package/dist/ts-diagnostic.mjs +2 -4
- package/dist/types.d.ts +4 -0
- package/dist/unplugin/unplugin.d.ts +2 -0
- package/dist/unplugin/unplugin.js +135 -130
- package/dist/unplugin/unplugin.mjs +135 -130
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@ 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.9.2 (2024-12-18, [diff](https://github.com/DanielXMoore/Civet/compare/v0.9.1...v0.9.2), [commits](https://github.com/DanielXMoore/Civet/commits/v0.9.2))
|
|
8
|
+
* Non-end rest parameters support types [[#1648](https://github.com/DanielXMoore/Civet/pull/1648)]
|
|
9
|
+
* Multithreaded compilation via Node workers and `threads` option or `CIVET_THREADS` environment variable; enable Node compiler cache; improve unplugin caching [[#1646](https://github.com/DanielXMoore/Civet/pull/1646)]
|
|
10
|
+
|
|
11
|
+
## 0.9.1 (2024-12-12, [diff](https://github.com/DanielXMoore/Civet/compare/v0.9.0...v0.9.1), [commits](https://github.com/DanielXMoore/Civet/commits/v0.9.1))
|
|
12
|
+
* Fat pipe `||>` uses semicolons at statement level [[#1636](https://github.com/DanielXMoore/Civet/pull/1636)]
|
|
13
|
+
* Fix parser crash on blocks inside `switch` [[#1640](https://github.com/DanielXMoore/Civet/pull/1640)]
|
|
14
|
+
* `:label` supports Civet reserved words (but not JS reserved words) [[#1641](https://github.com/DanielXMoore/Civet/pull/1641)]
|
|
15
|
+
* `break/continue loop/while/until/for/do` refer to anonymous containing iteration [[#1642](https://github.com/DanielXMoore/Civet/pull/1642)]
|
|
16
|
+
* Update unplugin to v2.1.0 [[#1643](https://github.com/DanielXMoore/Civet/pull/1643)]
|
|
17
|
+
|
|
7
18
|
## 0.9.0 (2024-12-05, [diff](https://github.com/DanielXMoore/Civet/compare/v0.8.17...v0.9.0), [commits](https://github.com/DanielXMoore/Civet/commits/v0.9.0))
|
|
8
19
|
* Range literal `[a..b]` defaults to increasing; adaptive behavior behind `"civet coffeeRange"` directive [[#1632](https://github.com/DanielXMoore/Civet/pull/1632)]
|
|
9
20
|
* BREAKING CHANGE: `[a..b]` and `[a...b]` no longer creates a decreasing range without an explicit `>` or `>=`; add one where needed.
|
package/dist/babel-plugin.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -17,14 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
16
|
};
|
|
18
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
18
|
|
|
20
|
-
// source
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
23
|
-
default: () =>
|
|
19
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\babel-plugin.civet.jsx
|
|
20
|
+
var babel_plugin_civet_exports = {};
|
|
21
|
+
__export(babel_plugin_civet_exports, {
|
|
22
|
+
default: () => babel_plugin_civet_default
|
|
24
23
|
});
|
|
25
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(babel_plugin_civet_exports);
|
|
26
25
|
var import_main = require("./main.js");
|
|
27
|
-
function
|
|
26
|
+
function babel_plugin_civet_default(api, civetOptions) {
|
|
28
27
|
return {
|
|
29
28
|
parserOverride(code, opts, parse) {
|
|
30
29
|
let src;
|
package/dist/babel-plugin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// source
|
|
1
|
+
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\babel-plugin.civet.jsx
|
|
2
2
|
import { compile } from "./main.mjs";
|
|
3
|
-
function
|
|
3
|
+
function babel_plugin_civet_default(api, civetOptions) {
|
|
4
4
|
return {
|
|
5
5
|
parserOverride(code, opts, parse) {
|
|
6
6
|
let src;
|
|
@@ -24,5 +24,5 @@ function babel_plugin_default(api, civetOptions) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
babel_plugin_civet_default as default
|
|
28
28
|
};
|