@swc/core 1.2.119 → 1.2.120

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/cliff.toml ADDED
@@ -0,0 +1,71 @@
1
+ # configuration file for git-cliff (0.1.0)
2
+
3
+ [changelog]
4
+ # changelog header
5
+ header = """
6
+ # Changelog
7
+ """
8
+ # template for the changelog body
9
+ # https://tera.netlify.app/docs/#introduction
10
+ body = """
11
+ {% if version %}\
12
+ ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
13
+ {% else %}\
14
+ ## [unreleased]
15
+ {% endif %}\
16
+ {% for group, commits in commits | group_by(attribute="group") %}
17
+ ### {{ group | upper_first }}
18
+ {% for commit in commits
19
+ | filter(attribute="scope")
20
+ | sort(attribute="scope") %}
21
+ \n
22
+ - **({{commit.scope}})** {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/swc-project/swc/commit/{{ commit.id }}))
23
+ {%- if commit.breaking %}
24
+ {% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
25
+ {%- endif -%}
26
+ {%- endfor -%}
27
+ \n\n
28
+ {%- for commit in commits %}
29
+ {%- if commit.scope -%}
30
+ {% else -%}
31
+ \n
32
+ - **general**: {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/swc-project/swc/commit/{{ commit.id }}))
33
+ {%- if commit.breaking %}
34
+ {% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
35
+ {%- endif -%}
36
+ {% endif -%}
37
+ {% endfor -%}
38
+ {% raw %}\n{% endraw %}\
39
+ {% endfor %}\n
40
+ """
41
+ # remove the leading and trailing whitespaces from the template
42
+ trim = true
43
+ # changelog footer
44
+ footer = """
45
+ <!-- generated by git-cliff -->
46
+ """
47
+
48
+ [git]
49
+ # allow only conventional commits
50
+ # https://www.conventionalcommits.org
51
+ conventional_commits = true
52
+ filter_unconventional = false
53
+ # regex for parsing and grouping commits
54
+ commit_parsers = [
55
+ {message = "^feat", group = "Features"},
56
+ {message = "^fix", group = "Bug Fixes"},
57
+ {message = "^doc", group = "Documentation"},
58
+ {message = "^perf", group = "Performance"},
59
+ {message = "^refactor", group = "Refactor"},
60
+ {message = "^style", group = "Styling"},
61
+ {message = "^test", group = "Testing"},
62
+ {message = "^chore: Publish", skip = true},
63
+ {message = "^chore", group = "Miscellaneous Tasks"},
64
+ {body = ".*security", group = "Security"},
65
+ ]
66
+ # filter out the commits that are not matched by commit parsers
67
+ filter_commits = false
68
+ # glob pattern for matching git tags
69
+ tag_pattern = "v[0-9]*"
70
+ # regex for skipping tags
71
+ skip_tags = "v0.1.0-beta.1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.119",
3
+ "version": "1.2.120",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -50,21 +50,22 @@
50
50
  "@node-rs/helper": "^1.0.0"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@swc/core-win32-x64-msvc": "^1.2.119",
54
- "@swc/core-darwin-x64": "^1.2.119",
55
- "@swc/core-linux-x64-gnu": "^1.2.119",
56
- "@swc/core-linux-x64-musl": "^1.2.119",
57
- "@swc/core-freebsd-x64": "^1.2.119",
58
- "@swc/core-win32-ia32-msvc": "^1.2.119",
59
- "@swc/core-linux-arm64-gnu": "^1.2.119",
60
- "@swc/core-linux-arm-gnueabihf": "^1.2.119",
61
- "@swc/core-darwin-arm64": "^1.2.119",
62
- "@swc/core-android-arm64": "^1.2.119",
63
- "@swc/core-linux-arm64-musl": "^1.2.119",
64
- "@swc/core-win32-arm64-msvc": "^1.2.119"
53
+ "@swc/core-win32-x64-msvc": "^1.2.120",
54
+ "@swc/core-darwin-x64": "^1.2.120",
55
+ "@swc/core-linux-x64-gnu": "^1.2.120",
56
+ "@swc/core-linux-x64-musl": "^1.2.120",
57
+ "@swc/core-freebsd-x64": "^1.2.120",
58
+ "@swc/core-win32-ia32-msvc": "^1.2.120",
59
+ "@swc/core-linux-arm64-gnu": "^1.2.120",
60
+ "@swc/core-linux-arm-gnueabihf": "^1.2.120",
61
+ "@swc/core-darwin-arm64": "^1.2.120",
62
+ "@swc/core-android-arm64": "^1.2.120",
63
+ "@swc/core-linux-arm64-musl": "^1.2.120",
64
+ "@swc/core-win32-arm64-msvc": "^1.2.120"
65
65
  },
66
66
  "types": "./index.d.ts",
67
67
  "scripts": {
68
+ "changelog": "git cliff --output CHANGELOG.md",
68
69
  "prepare": "husky install && git config feature.manyFiles true",
69
70
  "artifacts": "napi artifacts --dist scripts/npm",
70
71
  "prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
@@ -96,12 +97,15 @@
96
97
  "core-js": "^2.6.11",
97
98
  "cross-env": "^7.0.3",
98
99
  "cspell": "^5.12.3",
100
+ "expect": "^27.4.2",
99
101
  "husky": "^7.0.2",
100
102
  "jest": "^27.0.1",
101
103
  "lodash": "^4.17.21",
104
+ "mocha": "^9.1.3",
102
105
  "progress": "^2.0.3",
103
106
  "prop-types": "^15.7.2",
104
107
  "react": "^17.0.2",
108
+ "reflect-metadata": "^0.1.13",
105
109
  "regenerator-runtime": "^0.13.9",
106
110
  "source-map": "^0.7.3",
107
111
  "source-map-support": "^0.5.19",
package/types.d.ts CHANGED
@@ -1051,7 +1051,7 @@ export interface NamedExportSpecifier extends Node, HasSpan {
1051
1051
  /**
1052
1052
  * `Some(bar)` in `export { foo as bar }`
1053
1053
  */
1054
- exported: Identifier;
1054
+ exported: Identifier | null;
1055
1055
  }
1056
1056
  interface HasInterpreter {
1057
1057
  /**