@visulima/packem 1.0.8 → 1.0.9
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,9 @@
|
|
|
1
|
+
## @visulima/packem [1.0.9](https://github.com/visulima/packem/compare/@visulima/packem@1.0.8...@visulima/packem@1.0.9) (2024-10-21)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* updated @babel/parser, @rollup/plugin-commonjs, @rollup/plugin-dynamic-import-vars, [@visulima](https://github.com/visulima) packages, jiti, magic-string, mlly, typedoc and oxc-parser ([73d5a93](https://github.com/visulima/packem/commit/73d5a93cb503464b7e8718d426b090e53c32f986))
|
|
6
|
+
|
|
1
7
|
## @visulima/packem [1.0.8](https://github.com/visulima/packem/compare/@visulima/packem@1.0.7...@visulima/packem@1.0.8) (2024-10-05)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import __cjs_mod__ from "node:module"; // -- packem CommonJS require shim --
|
|
|
5
5
|
const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
7
7
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
8
|
-
const Zo="@visulima/packem",er="1.0.
|
|
8
|
+
const Zo="@visulima/packem",er="1.0.8",Ce=[".mjs",".js",".json",".node",".cjs",".ts",".cts",".mts",".tsx",".ctsx",".mtsx",".jsx"],C="production",Q="development",_e=new Set(["react-server","react-native","edge-light"]),pe=new Set([Q,C,..._e]),V=/node_modules/,J=/(?:\.d\.[mc]?tsx?|\.\w+)$/,tr="packem_chunks",or="packem_shared",H=/\.(?:m|c)?(?:j|t)sx?$/;var rr=Object.defineProperty,nr=m((e,t)=>rr(e,"name",{value:t,configurable:!0}),"a$g");const De=nr((e,t)=>e.some(o=>o instanceof RegExp?o.test(t):o===t),"arrayIncludes");var ir=Object.defineProperty,sr=m((e,t)=>ir(e,"name",{value:t,configurable:!0}),"a$f");const X=sr(e=>e==null?[]:Array.isArray(e)?e:[e],"arrayify");var ar=Object.defineProperty,lr=m((e,t)=>ar(e,"name",{value:t,configurable:!0}),"a$e");const xt=lr((e="")=>{const t=e.split("/");return t[0].startsWith("@")?t[0]+"/"+t[1]:t[0]},"getPackageName");var cr=Object.defineProperty,Et=m((e,t)=>cr(e,"name",{value:t,configurable:!0}),"s$g");const pr=Et((e,t,o)=>{const r=o??new Map;return(...n)=>{const i=t?typeof t=="function"?t(...n):t:JSON.stringify({args:n}),s=r.get(i);if(s!==void 0)return s;const a=e(...n);return r.set(i,a),a}},"memoize"),ur=Et(e=>{const t=new Map;return o=>pr(e,o,t)},"memoizeByKey");var dr=Object.defineProperty,Z=m((e,t)=>dr(e,"name",{value:t,configurable:!0}),"r$f");const mr=Z(function*(e){switch(e.declaration?.type){case"ClassDeclaration":case"FunctionDeclaration":{const{id:t}=e.declaration;ce(t,"Expected class/function to have a name"),yield t.name;break}case"VariableDeclaration":{for(const t of e.declaration.declarations)for(const o of Io(t.id))yield o;break}}},"exportName"),fr=Z(function*(e){if(e.declaration)for(const t of mr(e))yield{exportedName:t,from:"self",type:"named"};else if(e.source)yield{bindings:e.specifiers.map(t=>({exportedName:t.exported.name,importedName:t.local.name})),from:"other",source:e.source.value,type:"named"};else for(const t of e.specifiers)yield{exportedName:t.exported.name,from:"self",type:"named"}},"parseExportNamed"),gr=Z(function*(e){e.exported?yield{exportedName:e.exported.name,from:"self",type:"named"}:yield{from:"other",source:e.source.value,type:"barrel"}},"parseExportAll"),yr=Z(function*(){yield{exportedName:"default",from:"self",type:"named"}},"parseExportDefault"),hr=Z(function*(e,t){ce(t.code!=null,`Module ${t.id} doesn't have associated code`);const o=e.parse(t.code);for(const r of o.body)switch(r.type){case"ExportAllDeclaration":{yield*gr(r);break}case"ExportDefaultDeclaration":{yield*yr();break}case"ExportNamedDeclaration":{yield*fr(r);break}}},"parseExports");var vr=Object.defineProperty,ee=m((e,t)=>vr(e,"name",{value:t,configurable:!0}),"n$9");const Dt=ee(async function(e,t,o){const r=await e.resolve(t,o.id);if(ce(r,`Rollup can't resolve ${t} from ${o.id}`),r.external)return null;const n=await e.load(r);return ce(n,`Rollup doesn't have a module for id ${r.id}`),n},"getImportedModule"),br=ee(async function*(e,t,o){const r=await Dt(e,t.source,o);r&&(yield*Te(e,r))},"gatherBarrelReExports"),wr=ee(async function*(e,t,o){const r=await Dt(e,t.source,o);if(!r)return;const n=new Map(t.bindings.map(i=>[i.importedName,i]));for await(const i of Te(e,r)){const s=n.get(i.exportedName);s&&(yield{...i,exportedName:s.exportedName})}},"gatherNamedReExports"),$r=ee(async function*(e,t){yield{exportedName:t.exportedName,id:e.id,sourceName:t.exportedName}},"gatherNamedSelfExports"),Te=ee(async function*(e,t){for(const o of hr(e,t))o.from==="self"?yield*$r(t,o):o.type==="barrel"?yield*br(e,o,t):yield*wr(e,o,t)},"gatherExports");var jr=Object.defineProperty,kr=m((e,t)=>jr(e,"name",{value:t,configurable:!0}),"r$e");const xr=kr(()=>({moduleParsed:{async handler(e){if(e.isEntry)for await(const t of Te(this,e))t.id!==e.id&&this.emitFile({id:t.id,name:t.exportedName,preserveSignature:"exports-only",type:"chunk"})},order:"post"},name:"packem:chunk-splitter"}),"chunkSplitter");var Er=Object.defineProperty,Dr=m((e,t)=>Er(e,"name",{value:t,configurable:!0}),"r$d");const Sr=Dr((e,t)=>{const o=e,r=[];let n;for(;(n=o.exec(t))!==null;)n.index===o.lastIndex&&o.lastIndex++,n.forEach(i=>{r.push(i)});return r.filter(Boolean)},"getRegexMatches");var Or=Object.defineProperty,Pr=m((e,t)=>Or(e,"name",{value:t,configurable:!0}),"a$d");const St=Pr(e=>{const t=Sr(/export\s(\{\s(.*)\s\}|default\s.*);/g,e);if(t.length===0)return null;const o=t.at(-1).split(", ");let r="";for(const n of o)if(!n.includes("type")&&(n.includes("default ")&&(r=n.split("default ")[1]),n.includes("as"))){const[i,s]=n.split(" as ");s==="default"&&(r=i)}if(r!==""){const n=new F(e);return n.replace(new RegExp(`(,s)?${r} as default(,)?`),""),n.replace(new RegExp(`export default ${r};
|
|
9
9
|
?`),""),n.append(`
|
|
10
10
|
|
|
11
11
|
export = `+r+";"),{code:n.toString().replace(/export\s\{\s\s\};/,""),map:n.generateMap({hires:!0})}}return null},"patchCjsDefaultExport");var Nr=Object.defineProperty,Ue=m((e,t)=>Nr(e,"name",{value:t,configurable:!0}),"i$b");const Ot=Ue(({addDefaultProperty:e=!1,logger:t,type:o})=>({name:"packem:cjs-interop",renderChunk:Ue(async(r,n,i)=>{if(n.type!=="chunk"||!n.isEntry)return null;if(i.format==="cjs"&&i.exports==="auto"){const s=/(exports(?:\['default'\]|\.default)) = (.*);/i.exec(r);if(s===null||s.length<3)return null;const a=new F(r);a.replace("Object.defineProperty(exports, '__esModule', { value: true });",""),a.replaceAll(/exports\.(.*) = (.*);/g,"module.exports.$1 = $2;"),e&&a.append(`
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { FilterPattern } from "@rollup/pluginutils";
|
|
9
9
|
import type { Pail } from "@visulima/pail";
|
|
10
10
|
import type { BuildOptions as EsbuildOptions, Loader, TransformOptions } from "esbuild";
|
|
11
|
-
|
|
11
|
+
type MarkOptional<Type, Keys extends keyof Type> = Type extends Type ? Omit<Type, Keys> & Partial<Pick<Type, Keys>> : never;
|
|
12
12
|
export type Options = {
|
|
13
13
|
exclude?: FilterPattern;
|
|
14
14
|
include?: FilterPattern;
|
|
@@ -37,3 +37,4 @@ export type OptimizeDepsResult = {
|
|
|
37
37
|
export type EsbuildPluginConfig = {
|
|
38
38
|
logger: Pail;
|
|
39
39
|
} & Options;
|
|
40
|
+
export {};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { FilterPattern } from "@rollup/pluginutils";
|
|
9
9
|
import type { Pail } from "@visulima/pail";
|
|
10
10
|
import type { BuildOptions as EsbuildOptions, Loader, TransformOptions } from "esbuild";
|
|
11
|
-
|
|
11
|
+
type MarkOptional<Type, Keys extends keyof Type> = Type extends Type ? Omit<Type, Keys> & Partial<Pick<Type, Keys>> : never;
|
|
12
12
|
export type Options = {
|
|
13
13
|
exclude?: FilterPattern;
|
|
14
14
|
include?: FilterPattern;
|
|
@@ -37,3 +37,4 @@ export type OptimizeDepsResult = {
|
|
|
37
37
|
export type EsbuildPluginConfig = {
|
|
38
38
|
logger: Pail;
|
|
39
39
|
} & Options;
|
|
40
|
+
export {};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { FilterPattern } from "@rollup/pluginutils";
|
|
9
9
|
import type { Pail } from "@visulima/pail";
|
|
10
10
|
import type { BuildOptions as EsbuildOptions, Loader, TransformOptions } from "esbuild";
|
|
11
|
-
|
|
11
|
+
type MarkOptional<Type, Keys extends keyof Type> = Type extends Type ? Omit<Type, Keys> & Partial<Pick<Type, Keys>> : never;
|
|
12
12
|
export type Options = {
|
|
13
13
|
exclude?: FilterPattern;
|
|
14
14
|
include?: FilterPattern;
|
|
@@ -37,3 +37,4 @@ export type OptimizeDepsResult = {
|
|
|
37
37
|
export type EsbuildPluginConfig = {
|
|
38
38
|
logger: Pail;
|
|
39
39
|
} & Options;
|
|
40
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/packem",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "A fast and modern bundler for Node.js and TypeScript.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -182,36 +182,36 @@
|
|
|
182
182
|
],
|
|
183
183
|
"dependencies": {
|
|
184
184
|
"@antfu/install-pkg": "0.4.1",
|
|
185
|
-
"@babel/parser": "7.25.
|
|
185
|
+
"@babel/parser": "7.25.8",
|
|
186
186
|
"@ckeditor/typedoc-plugins": "44.0.0",
|
|
187
187
|
"@clack/prompts": "0.7.0",
|
|
188
188
|
"@rollup/plugin-alias": "5.1.1",
|
|
189
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
190
|
-
"@rollup/plugin-dynamic-import-vars": "2.1.
|
|
189
|
+
"@rollup/plugin-commonjs": "28.0.1",
|
|
190
|
+
"@rollup/plugin-dynamic-import-vars": "2.1.5",
|
|
191
191
|
"@rollup/plugin-inject": "5.0.5",
|
|
192
192
|
"@rollup/plugin-json": "6.1.0",
|
|
193
193
|
"@rollup/plugin-node-resolve": "15.3.0",
|
|
194
194
|
"@rollup/plugin-replace": "6.0.1",
|
|
195
195
|
"@rollup/plugin-wasm": "6.2.2",
|
|
196
196
|
"@rollup/pluginutils": "5.1.2",
|
|
197
|
-
"@visulima/cerebro": "1.1.
|
|
198
|
-
"@visulima/colorize": "1.4.
|
|
199
|
-
"@visulima/find-cache-dir": "1.0.
|
|
200
|
-
"@visulima/fs": "2.2.
|
|
201
|
-
"@visulima/humanizer": "1.0.
|
|
202
|
-
"@visulima/package": "3.1.
|
|
203
|
-
"@visulima/pail": "2.1.
|
|
204
|
-
"@visulima/path": "1.1.
|
|
205
|
-
"@visulima/tsconfig": "1.0.
|
|
197
|
+
"@visulima/cerebro": "1.1.24",
|
|
198
|
+
"@visulima/colorize": "1.4.12",
|
|
199
|
+
"@visulima/find-cache-dir": "1.0.14",
|
|
200
|
+
"@visulima/fs": "2.2.2",
|
|
201
|
+
"@visulima/humanizer": "1.0.14",
|
|
202
|
+
"@visulima/package": "3.1.4",
|
|
203
|
+
"@visulima/pail": "2.1.11",
|
|
204
|
+
"@visulima/path": "1.1.1",
|
|
205
|
+
"@visulima/tsconfig": "1.0.16",
|
|
206
206
|
"defu": "6.1.4",
|
|
207
207
|
"es-module-lexer": "1.5.4",
|
|
208
208
|
"fastest-levenshtein": "1.0.16",
|
|
209
209
|
"glob-parent": "6.0.2",
|
|
210
210
|
"hookable": "5.5.3",
|
|
211
|
-
"jiti": "2.3.
|
|
212
|
-
"magic-string": "0.30.
|
|
213
|
-
"mlly": "1.7.
|
|
214
|
-
"oxc-parser": "0.
|
|
211
|
+
"jiti": "2.3.3",
|
|
212
|
+
"magic-string": "0.30.12",
|
|
213
|
+
"mlly": "1.7.2",
|
|
214
|
+
"oxc-parser": "0.32.0",
|
|
215
215
|
"rollup": "4.24.0",
|
|
216
216
|
"rollup-plugin-dts": "6.1.1",
|
|
217
217
|
"rollup-plugin-license": "3.5.3",
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"rollup-plugin-visualizer": "5.12.0",
|
|
220
220
|
"semver": "7.6.3",
|
|
221
221
|
"tinyglobby": "0.2.9",
|
|
222
|
-
"typedoc": "0.26.
|
|
222
|
+
"typedoc": "0.26.10",
|
|
223
223
|
"typedoc-plugin-markdown": "4.2.9",
|
|
224
224
|
"typedoc-plugin-rename-defaults": "0.7.1"
|
|
225
225
|
},
|
|
@@ -229,10 +229,10 @@
|
|
|
229
229
|
"@anolilab/semantic-release-pnpm": "^1.1.3",
|
|
230
230
|
"@anolilab/semantic-release-preset": "^9.0.0",
|
|
231
231
|
"@arethetypeswrong/cli": "^0.16.4",
|
|
232
|
-
"@babel/core": "^7.25.
|
|
232
|
+
"@babel/core": "^7.25.8",
|
|
233
233
|
"@rushstack/eslint-plugin-security": "^0.8.3",
|
|
234
|
-
"@secretlint/secretlint-rule-preset-recommend": "^
|
|
235
|
-
"@swc/core": "^1.7.
|
|
234
|
+
"@secretlint/secretlint-rule-preset-recommend": "^9.0.0",
|
|
235
|
+
"@swc/core": "^1.7.36",
|
|
236
236
|
"@swc/types": "0.1.12",
|
|
237
237
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
238
238
|
"@types/estree": "^1.0.6",
|
|
@@ -241,10 +241,10 @@
|
|
|
241
241
|
"@types/is-glob": "^4.0.4",
|
|
242
242
|
"@types/node": "18.19.50",
|
|
243
243
|
"@types/react": "^18.3.11",
|
|
244
|
-
"@types/react-dom": "^18.3.
|
|
244
|
+
"@types/react-dom": "^18.3.1",
|
|
245
245
|
"@types/semver": "^7.5.8",
|
|
246
|
-
"@vitest/coverage-v8": "^2.1.
|
|
247
|
-
"@vitest/ui": "^2.1.
|
|
246
|
+
"@vitest/coverage-v8": "^2.1.3",
|
|
247
|
+
"@vitest/ui": "^2.1.3",
|
|
248
248
|
"conventional-changelog-conventionalcommits": "8.0.0",
|
|
249
249
|
"cross-env": "^7.0.3",
|
|
250
250
|
"detect-indent": "^7.0.1",
|
|
@@ -257,20 +257,19 @@
|
|
|
257
257
|
"eslint-plugin-vitest": "0.4.1",
|
|
258
258
|
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
259
259
|
"estree-walker": "^3.0.3",
|
|
260
|
-
"execa": "^9.4.
|
|
261
|
-
"oxc-transform": "^0.
|
|
260
|
+
"execa": "^9.4.1",
|
|
261
|
+
"oxc-transform": "^0.32.0",
|
|
262
262
|
"prettier": "^3.3.3",
|
|
263
263
|
"react": "^18.3.1",
|
|
264
264
|
"react-dom": "^18.3.1",
|
|
265
265
|
"rimraf": "^6.0.1",
|
|
266
|
-
"secretlint": "
|
|
267
|
-
"semantic-release": "^24.1.
|
|
266
|
+
"secretlint": "9.0.0",
|
|
267
|
+
"semantic-release": "^24.1.3",
|
|
268
268
|
"sort-package-json": "^2.10.1",
|
|
269
269
|
"sucrase": "^3.35.0",
|
|
270
270
|
"tempy": "^3.1.0",
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"vitest": "^2.1.2"
|
|
271
|
+
"typescript": "^5.6.3",
|
|
272
|
+
"vitest": "^2.1.3"
|
|
274
273
|
},
|
|
275
274
|
"peerDependencies": {
|
|
276
275
|
"@swc/core": "^1.5.7",
|