@visulima/packem 1.0.0-alpha.57 → 1.0.0-alpha.59

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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## @visulima/packem [1.0.0-alpha.59](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.58...@visulima/packem@1.0.0-alpha.59) (2024-07-31)
2
+
3
+ ### Bug Fixes
4
+
5
+ * updated deps and fixed more tests ([10a28d1](https://github.com/visulima/packem/commit/10a28d12c9eed8a4c13237319c6b15eef6026442))
6
+
7
+ ## @visulima/packem [1.0.0-alpha.58](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.57...@visulima/packem@1.0.0-alpha.58) (2024-07-30)
8
+
9
+ ### Bug Fixes
10
+
11
+ * fixed more tests ([5bc13a8](https://github.com/visulima/packem/commit/5bc13a8c1218fcbb783a3085f6fd193e8c590829))
12
+
1
13
  ## @visulima/packem [1.0.0-alpha.57](https://github.com/visulima/packem/compare/@visulima/packem@1.0.0-alpha.56...@visulima/packem@1.0.0-alpha.57) (2024-07-30)
2
14
 
3
15
  ### Bug Fixes
package/dist/cli.mjs CHANGED
@@ -7,7 +7,7 @@ import __cjs_mod__ from "node:module";
7
7
  const __filename = __cjs_url__.fileURLToPath(import.meta.url);
8
8
  const __dirname = __cjs_path__.dirname(__filename);
9
9
  const require = __cjs_mod__.createRequire(import.meta.url);
10
- const jo="@visulima/packem",ko="1.0.0-alpha.56",F=[...Yt.extensions,".cjs",".ts",".cts",".mts",".tsx",".jsx"],xo=["development","production"],Ge=["react-server","react-native","edge-light"];[...xo,...Ge];const G=/node_modules/;var Eo=Object.defineProperty,q=d((e,t)=>Eo(e,"name",{value:t,configurable:!0}),"i$d");const ce=/^#![^\n]*/,te=q(async e=>{await _t(e,493).catch(()=>{})},"makeExecutable"),Oo=q((e,t=`#!/usr/bin/env node
10
+ const jo="@visulima/packem",ko="1.0.0-alpha.58",F=[...Yt.extensions,".cjs",".ts",".cts",".mts",".tsx",".jsx"],xo=["development","production"],Ge=["react-server","react-native","edge-light"];[...xo,...Ge];const G=/node_modules/;var Eo=Object.defineProperty,q=d((e,t)=>Eo(e,"name",{value:t,configurable:!0}),"i$d");const ce=/^#![^\n]*/,te=q(async e=>{await _t(e,493).catch(()=>{})},"makeExecutable"),Oo=q((e,t=`#!/usr/bin/env node
11
11
  `)=>({name:"packem:shebang",renderChunk:{handler(o,n,r){if(!n.isEntry||!n.facadeModuleId||o.startsWith("#")&&o[1]==="!")return null;if(e.includes(n.name)){const i=new P(o);return i.prepend(t),{code:i.toString(),map:r.sourcemap?i.generateMap({hires:!0}):void 0}}return null},order:"post"},async writeBundle(o,n){for(const[r,i]of Object.entries(n))if(i.type==="chunk"&&ce.test(i.code)&&o.dir){const s=g(o.dir,r);await te(s)}}}),"shebangPlugin"),Do=q(()=>({name:"packem:remove-shebang",renderChunk(e){return e.replace(ce,"")}}),"removeShebangPlugin"),So=q((e,t=`
12
12
  `)=>{const o=ce.exec(e);return o?o+t:""},"getShebang");var No=Object.defineProperty,Po=d((e,t)=>No(e,"name",{value:t,configurable:!0}),"p$4");const pe=Po((e,t)=>{let o={};if(e.pkg.name&&(o[e.pkg.name]=e.options.rootDir),e.pkg.imports){const{imports:n}=e.pkg;for(const r in n){if(r.startsWith("#"))continue;const i=n[r];typeof i=="string"&&(o[r]=b(e.options.rootDir,i))}}return o={...o,...e.options.alias},e.options.rollup.alias&&(Array.isArray(e.options.rollup.alias.entries)?Object.assign(o,Object.fromEntries(e.options.rollup.alias.entries.map(n=>[n.find,n.replacement]))):Object.assign(o,e.options.rollup.alias.entries??e.options.rollup.alias)),e.logger.debug({message:"Resolved aliases: "+JSON.stringify(o),prefix:t}),o},"resolveAliases");var Co=Object.defineProperty,_o=d((e,t)=>Co(e,"name",{value:t,configurable:!0}),"o$3");const Mo=_o((e,t)=>{const o=ze(t,{esmResolve:!0,interopDefault:!0});try{return o.resolve(e)}catch(n){if(n.code!=="MODULE_NOT_FOUND")throw new Error(`Error trying import ${e} from ${t}`,{cause:n});return e}},"tryResolve");var Io=Object.defineProperty,Fo=d((e,t)=>Io(e,"name",{value:t,configurable:!0}),"r$a");const B=Fo((e,t)=>{e.warnings.has(t)||e.warnings.add(t)},"warn");var Ro=Object.defineProperty,To=d((e,t)=>Ro(e,"name",{value:t,configurable:!0}),"u$a");const Ao=To(async e=>{const t=await Zt("jiti",{url:import.meta.url}),o=JSON.stringify({...e.options.stubOptions.jiti,alias:{...pe(e,"jit"),...e.options.stubOptions.jiti.alias}},null,2);for(const n of e.options.entries){const r=g(e.options.rootDir,e.options.outDir,n.name),i=ie(Mo(n.input,e.options.rootDir)||n.input),s=i.slice(0,Math.max(0,i.length-se(i).length)),a=await re(i),l=So(a);e.options.emitCJS&&await J(`${r}.cjs`,l+[`const jiti = require(${JSON.stringify(t)})`,"",`const _jiti = jiti(null, ${o})`,"",`/** @type {import(${JSON.stringify(s)})} */`,`module.exports = _jiti(${JSON.stringify(i)})`].join(`
13
13
  `));let c=[];try{c=await Qt(i,{extensions:F})}catch(u){B(e,`Cannot analyze ${i} for exports: ${u.toString()}`);return}const p=c.includes("default")||c.length===0;await J(`${r}.mjs`,l+[`import jiti from ${JSON.stringify(Kt(t).href)};`,"",`const _jiti = jiti(null, ${o})`,"",`/** @type {import(${JSON.stringify(i)})} */`,`const _module = await _jiti.import(${JSON.stringify(i)});`,p?`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/packem",
3
- "version": "1.0.0-alpha.57",
3
+ "version": "1.0.0-alpha.59",
4
4
  "description": "A fast and modern bundler for Node.js and TypeScript.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -146,7 +146,7 @@
146
146
  ],
147
147
  "dependencies": {
148
148
  "@antfu/install-pkg": "^0.3.3",
149
- "@babel/parser": "^7.24.8",
149
+ "@babel/parser": "^7.25.0",
150
150
  "@clack/prompts": "^0.7.0",
151
151
  "@rollup/plugin-alias": "^5.1.0",
152
152
  "@rollup/plugin-commonjs": "^26.0.1",
@@ -157,24 +157,24 @@
157
157
  "@rollup/plugin-replace": "^5.0.7",
158
158
  "@rollup/plugin-wasm": "^6.2.2",
159
159
  "@rollup/pluginutils": "^5.1.0",
160
- "@visulima/cerebro": "^1.1.11",
160
+ "@visulima/cerebro": "^1.1.12",
161
161
  "@visulima/colorize": "^1.4.3",
162
162
  "@visulima/find-cache-dir": "^1.0.3",
163
163
  "@visulima/fs": "^2.1.10",
164
164
  "@visulima/humanizer": "^1.0.5",
165
165
  "@visulima/package": "^3.0.4",
166
- "@visulima/pail": "^2.1.0",
166
+ "@visulima/pail": "^2.1.1",
167
167
  "@visulima/path": "^1.0.2",
168
- "@visulima/tsconfig": "^1.0.4",
168
+ "@visulima/tsconfig": "^1.0.5",
169
169
  "defu": "6.1.4",
170
170
  "es-module-lexer": "^1.5.4",
171
171
  "fastest-levenshtein": "^1.0.16",
172
172
  "glob": "^11.0.0",
173
173
  "glob-parent": "^6.0.2",
174
174
  "hookable": "^5.5.3",
175
- "magic-string": "^0.30.10",
175
+ "magic-string": "^0.30.11",
176
176
  "mlly": "^1.7.1",
177
- "rollup": "^4.19.0",
177
+ "rollup": "^4.19.1",
178
178
  "rollup-plugin-dts": "^6.1.1",
179
179
  "rollup-plugin-license": "^3.5.2",
180
180
  "rollup-plugin-polyfill-node": "^0.13.0",
@@ -186,21 +186,21 @@
186
186
  "@anolilab/prettier-config": "^5.0.14",
187
187
  "@anolilab/semantic-release-pnpm": "^1.1.3",
188
188
  "@anolilab/semantic-release-preset": "^9.0.0",
189
- "@babel/core": "^7.24.9",
190
- "@rushstack/eslint-plugin-security": "^0.8.1",
189
+ "@babel/core": "^7.25.2",
190
+ "@rushstack/eslint-plugin-security": "^0.8.2",
191
191
  "@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
192
- "@swc/core": "^1.7.0",
193
- "@swc/types": "0.1.9",
192
+ "@swc/core": "^1.7.3",
193
+ "@swc/types": "0.1.12",
194
194
  "@total-typescript/ts-reset": "^0.5.1",
195
195
  "@types/estree": "^1.0.5",
196
196
  "@types/glob": "^8.1.0",
197
197
  "@types/glob-parent": "^5.1.3",
198
- "@types/node": "20.14.11",
198
+ "@types/node": "18.19.39",
199
199
  "@types/react": "^18.3.3",
200
200
  "@types/react-dom": "^18.3.0",
201
201
  "@types/semver": "^7.5.8",
202
- "@vitest/coverage-v8": "^2.0.3",
203
- "@vitest/ui": "^2.0.3",
202
+ "@vitest/coverage-v8": "^2.0.4",
203
+ "@vitest/ui": "^2.0.4",
204
204
  "conventional-changelog-conventionalcommits": "8.0.0",
205
205
  "cross-env": "^7.0.3",
206
206
  "esbuild": "^0.23.0",
@@ -214,19 +214,19 @@
214
214
  "estree-walker": "^3.0.3",
215
215
  "execa": "^9.3.0",
216
216
  "jiti": "^1.21.6",
217
- "oxc-transform": "^0.21.0",
217
+ "oxc-transform": "^0.22.1",
218
218
  "prettier": "^3.3.3",
219
219
  "react": "^18.3.1",
220
220
  "react-dom": "^18.3.1",
221
- "rimraf": "^5.0.7",
221
+ "rimraf": "^6.0.1",
222
222
  "secretlint": "8.2.4",
223
223
  "semantic-release": "^24.0.0",
224
224
  "sort-package-json": "^2.10.0",
225
225
  "sucrase": "^3.35.0",
226
226
  "tempy": "^3.1.0",
227
227
  "ts-essentials": "^10.0.1",
228
- "typescript": "^5.5.3",
229
- "vitest": "^2.0.3"
228
+ "typescript": "^5.5.4",
229
+ "vitest": "^2.0.4"
230
230
  },
231
231
  "peerDependencies": {
232
232
  "@swc/core": "^1.5.7",