@danielx/civet 0.9.1 → 0.9.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 +11 -0
- package/dist/babel-plugin.js +6 -7
- package/dist/babel-plugin.mjs +3 -3
- package/dist/browser.js +4719 -9822
- 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 +1175 -995
- package/dist/main.mjs +1179 -992
- 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 -142
- package/dist/unplugin/unplugin.mjs +135 -142
- package/package.json +4 -4
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.3 (2024-12-22, [diff](https://github.com/DanielXMoore/Civet/compare/v0.9.2...v0.9.3), [commits](https://github.com/DanielXMoore/Civet/commits/v0.9.3))
|
|
8
|
+
* `coffeeClasses` improved compatibility: private static class fields via `=`, bound methods via `=>` , `constructor` shouldn't `return` [[#1650](https://github.com/DanielXMoore/Civet/pull/1650)]
|
|
9
|
+
* Pin parameter `^p` assigns function parameter to outer variable [[#1651](https://github.com/DanielXMoore/Civet/pull/1651)]
|
|
10
|
+
* List of ASCII symbols in cheatsheet [[#1653](https://github.com/DanielXMoore/Civet/pull/1653)]
|
|
11
|
+
* `let x?` allows initial `undefined` value + type inference; `let x? = y` for simple `y` [[#1654](https://github.com/DanielXMoore/Civet/pull/1654)]
|
|
12
|
+
* Extension bug fix for unplugin on webpack; cleanup old bug workarounds [[#1655](https://github.com/DanielXMoore/Civet/pull/1655)]
|
|
13
|
+
|
|
14
|
+
## 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))
|
|
15
|
+
* Non-end rest parameters support types [[#1648](https://github.com/DanielXMoore/Civet/pull/1648)]
|
|
16
|
+
* 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)]
|
|
17
|
+
|
|
7
18
|
## 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))
|
|
8
19
|
* Fat pipe `||>` uses semicolons at statement level [[#1636](https://github.com/DanielXMoore/Civet/pull/1636)]
|
|
9
20
|
* Fix parser crash on blocks inside `switch` [[#1640](https://github.com/DanielXMoore/Civet/pull/1640)]
|
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
|
};
|