rregex 1.9.0 → 1.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/package.json CHANGED
@@ -1,37 +1,51 @@
1
1
  {
2
2
  "name": "rregex",
3
- "version": "1.9.0",
4
- "description": "Rust Regex binding for Javascript",
3
+ "version": "1.9.2",
4
+ "description": "A dependency-free WebAssembly build of Rust Regex for Javascript",
5
5
  "private": false,
6
- "main": "./lib/commonjs.js",
7
- "browser": "./lib/browser.js",
8
- "module": "./lib/module.js",
9
- "types": "./lib/types.d.ts",
6
+ "type": "module",
7
+ "main": "./lib/commonjs.cjs",
8
+ "types": "./lib/commonjs.d.cts",
9
+ "module": "./lib/esm.mjs",
10
+ "browser": "./lib/web.js",
11
+ "exports": {
12
+ "./package.json": "./package.json",
13
+ ".": {
14
+ "import": {
15
+ "types": "./lib/esm.d.ts",
16
+ "default": "./lib/esm.mjs"
17
+ },
18
+ "require": {
19
+ "types": "./lib/commonjs.d.cts",
20
+ "default": "./lib/commonjs.cjs"
21
+ },
22
+ "browser": {
23
+ "types": "./lib/web.d.ts",
24
+ "default": "./lib/web.js"
25
+ }
26
+ }
27
+ },
28
+ "publishConfig": {
29
+ "provenance": true
30
+ },
10
31
  "devDependencies": {
11
- "@babel/plugin-proposal-class-properties": "^7.16.0",
12
- "@babel/preset-env": "^7.16.4",
13
- "@babel/preset-typescript": "^7.16.0",
14
- "@types/jest": "^27.0.3",
15
- "@types/node": "^16.11.11",
16
- "babel-jest": "^27.4.2",
17
- "esbuild-jest": "^0.5.0",
18
- "jest": "^29.7.0",
19
- "semantic-release": "^18.0.1",
20
- "toml": "^3.0.0",
21
- "typescript": "^4.5.2"
32
+ "@semantic-release/exec": "^6.0.3",
33
+ "@types/node": "^22.10.2",
34
+ "concurrently": "^8.2.2",
35
+ "semantic-release": "^25.0.0",
36
+ "tinybench": "^2.7.0",
37
+ "toml": "^3.0.0"
22
38
  },
23
39
  "scripts": {
24
40
  "setup": "./bin/install.sh",
25
41
  "build": "./bin/build.sh",
26
- "test": "wasm-pack test --node && jest --passWithNoTests",
42
+ "test": "node --test test/node.test.mjs",
27
43
  "test:rs": "wasm-pack test",
28
- "test:ts": "jest",
29
44
  "semantic-release": "semantic-release"
30
45
  },
31
46
  "jest": {
32
- "transform": {
33
- "^.+\\.tsx?$": "esbuild-jest"
34
- }
47
+ "testEnvironment": "node",
48
+ "testRegex": "node\\.test\\.[cm]js$"
35
49
  },
36
50
  "release": {
37
51
  "ci": false,
@@ -81,9 +95,63 @@
81
95
  "range": "1.8.x",
82
96
  "channel": "1.8.x"
83
97
  },
98
+ {
99
+ "name": "1.9.x",
100
+ "range": "1.9.x",
101
+ "channel": "1.9.x"
102
+ },
103
+ {
104
+ "name": "1.10.x",
105
+ "range": "1.10.x",
106
+ "channel": "1.10.x"
107
+ },
108
+ {
109
+ "name": "1.11.x",
110
+ "range": "1.11.x",
111
+ "channel": "1.11.x"
112
+ },
113
+ {
114
+ "name": "1.12.x",
115
+ "range": "1.12.x",
116
+ "channel": "1.12.x"
117
+ },
84
118
  {
85
119
  "name": "master"
86
120
  }
121
+ ],
122
+ "plugins": [
123
+ "@semantic-release/commit-analyzer",
124
+ "@semantic-release/release-notes-generator",
125
+ "@semantic-release/npm",
126
+ [
127
+ "@semantic-release/github",
128
+ {
129
+ "assets": [
130
+ {
131
+ "path": "lib/standalone.js",
132
+ "label": "standalone.js"
133
+ },
134
+ {
135
+ "path": "lib/esm.mjs",
136
+ "label": "esm.js"
137
+ },
138
+ {
139
+ "path": "lib/esm.d.ts",
140
+ "label": "esm.d.ts"
141
+ },
142
+ {
143
+ "path": "lib/rregex.wasm",
144
+ "label": "rregex.wasm"
145
+ }
146
+ ]
147
+ }
148
+ ],
149
+ [
150
+ "@semantic-release/exec",
151
+ {
152
+ "publishCmd": "node bin/jsr.mjs ${nextRelease.version} && npx jsr publish --allow-dirty"
153
+ }
154
+ ]
87
155
  ]
88
156
  },
89
157
  "repository": {