@stacksjs/actions 0.70.71 → 0.70.73
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/dist/action.js +1 -1
- package/dist/actions.js +1 -1
- package/dist/add.js +1 -1
- package/dist/ai/request-model-access.js +1 -1
- package/dist/blog.js +1 -1
- package/dist/build/frontend-static.js +1 -1
- package/dist/build.js +1 -1
- package/dist/bump.js +2 -1
- package/dist/{chunk-badehrwa.js → chunk-0wyxyqak.js} +1 -1
- package/dist/{chunk-5dfz9en9.js → chunk-1ebgbeyr.js} +2 -2
- package/dist/{chunk-nm9h5rye.js → chunk-29eg94q3.js} +2 -2
- package/dist/{chunk-jve1p4dz.js → chunk-8maaf0ze.js} +2 -2
- package/dist/{chunk-nn1a9b4f.js → chunk-8tmc78d6.js} +1 -1
- package/dist/{chunk-5hwp0frq.js → chunk-acyw294f.js} +1 -1
- package/dist/{chunk-vsj8ns4p.js → chunk-ay41a7jn.js} +1 -1
- package/dist/{chunk-8r76qydb.js → chunk-b10hy2vq.js} +2 -2
- package/dist/{chunk-xhznkfad.js → chunk-bbd6n9q2.js} +2 -2
- package/dist/{chunk-9a8838dc.js → chunk-c0cs49hn.js} +2 -2
- package/dist/{chunk-63swek9d.js → chunk-ckcjsw9a.js} +2 -2
- package/dist/{chunk-aazd6qpv.js → chunk-d5mbs5zz.js} +1 -1
- package/dist/{chunk-8gbewxns.js → chunk-e87s6b8r.js} +1 -1
- package/dist/{chunk-e8505qz8.js → chunk-h10aj7jf.js} +2 -2
- package/dist/{chunk-4qzb8g3z.js → chunk-h3163h5z.js} +1 -1
- package/dist/{chunk-p601xr03.js → chunk-h63c1v89.js} +1 -1
- package/dist/{chunk-pqnzp7x8.js → chunk-j9vajggg.js} +2 -2
- package/dist/{chunk-sp5cjdhd.js → chunk-jn81jcta.js} +1 -1
- package/dist/{chunk-jv7ry09n.js → chunk-k7n6c9hm.js} +1 -1
- package/dist/{chunk-az3bb5fg.js → chunk-m0v346zb.js} +1 -1
- package/dist/{chunk-5pwpk005.js → chunk-prpycg7f.js} +2 -2
- package/dist/{chunk-ryz8etwk.js → chunk-qqth0x9w.js} +2 -2
- package/dist/{chunk-z7qb1602.js → chunk-r3t7shd4.js} +1 -1
- package/dist/chunk-rft5b6wr.js +3 -0
- package/dist/{chunk-zehw6yk8.js → chunk-vn8sr2rt.js} +2 -2
- package/dist/{chunk-tqax3gbq.js → chunk-vntz6mtt.js} +1 -1
- package/dist/{chunk-23thftnv.js → chunk-vv4nqhgg.js} +1 -1
- package/dist/{chunk-mcwfmqzb.js → chunk-w363nwy3.js} +1 -1
- package/dist/{chunk-ag4fy7cx.js → chunk-wtnp31q5.js} +1 -1
- package/dist/{chunk-67am4dae.js → chunk-y5k9qbfd.js} +1 -1
- package/dist/commit.js +1 -1
- package/dist/deploy/index.js +2 -2
- package/dist/dev/api.js +1 -1
- package/dist/dev/dashboard-globals.js +1 -1
- package/dist/dev/dashboard-utils.js +1 -1
- package/dist/dev/dashboard.js +2 -2
- package/dist/dev/index.js +1 -1
- package/dist/dev/migrate-watcher.js +1 -1
- package/dist/dev/views.js +1 -1
- package/dist/discover-packages.js +1 -1
- package/dist/examples.js +1 -1
- package/dist/generate/component-meta.js +1 -1
- package/dist/generate/env-files.js +1 -1
- package/dist/generate/ide-helpers.js +1 -1
- package/dist/generate/index.js +1 -1
- package/dist/generate/lib-entries.js +1 -1
- package/dist/generate/vscode-custom-data.js +1 -1
- package/dist/helpers/component-meta.js +1 -1
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/lib-entries.js +1 -1
- package/dist/helpers/package-json.js +1 -1
- package/dist/helpers/utils.js +1 -1
- package/dist/helpers/vscode-custom-data.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/lint/fix.js +2 -4
- package/dist/lint/index.js +1 -1
- package/dist/lint/lint.d.ts +14 -0
- package/dist/lint/lint.js +2 -0
- package/dist/make-command.js +1 -1
- package/dist/make-job.js +1 -1
- package/dist/make-policy.js +1 -1
- package/dist/make-resource.js +1 -1
- package/dist/make.js +1 -1
- package/dist/orm/base.js +1 -1
- package/dist/release.js +1 -1
- package/dist/run-action.js +1 -1
- package/dist/scaffold-crud.js +1 -1
- package/dist/setup/index.js +1 -1
- package/dist/setup/ssl.js +1 -1
- package/dist/stacks.js +1 -1
- package/dist/templates.js +1 -1
- package/dist/types.js +1 -1
- package/dist/upgrade/dependencies.js +1 -1
- package/dist/upgrade/framework-utils.js +1 -1
- package/dist/upgrade/framework.js +1 -1
- package/dist/upgrade/index.js +1 -1
- package/dist/upgrade/packages.js +8 -7
- package/dist/upgrade.js +1 -1
- package/package.json +24 -16
- /package/dist/{chunk-e9tcbk71.js → chunk-g6k41p49.js} +0 -0
package/dist/upgrade/packages.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"../chunk-
|
|
2
|
+
import"../chunk-h3163h5z.js";import{existsSync as U,readFileSync as V,writeFileSync as W}from"fs";import{join as X}from"path";import N from"process";import{runCommand as Y}from"@stacksjs/cli";async function Z(A){let z=await fetch("https://registry.npmjs.org/stacks").catch(()=>null);if(!z||!z.ok)throw Error("Could not reach the npm registry to resolve the target `stacks` version.");let J=await z.json(),K=J["dist-tags"]??{},H=J.versions??{},q;if(A.version){if(!H[A.version])throw Error(`stacks@${A.version} was not found on the npm registry.`);q=A.version}else{let I=A.canary?"canary":"latest",b=K[I];if(!b)throw Error(`The \`${I}\` dist-tag is not published for \`stacks\`.`);q=b}let E=new Set(Object.keys(H[q]?.dependencies??{}));return{version:q,coreDeps:E}}function _(A,z,J){let K=[],H=(q)=>q==="stacks"||q.startsWith("@stacksjs/")&&J.has(q);for(let q of["dependencies","devDependencies"]){let E=A[q];if(!E)continue;for(let[I,b]of Object.entries(E)){if(!H(I))continue;let G=`${/^[\^~]/.test(b)?b[0]:/^\d/.test(b)?"":"^"}${z}`;if(b!==G)K.push({name:I,from:b,to:G}),E[I]=G}}return K}async function T(A,z){let J=X(A,"package.json");if(!U(J))console.error("No package.json found \u2014 nothing to upgrade."),N.exit(1);let K=V(J,"utf-8"),H=JSON.parse(K),q=H.dependencies?.stacks??H.devDependencies?.stacks,{version:E,coreDeps:I}=await Z(z).catch((M)=>{console.error(`\u2717 ${M.message}`),N.exit(1)});if(console.log(`
|
|
3
3
|
Upgrading the Stacks framework${z.canary?" (canary)":""} \u2192 ${E}`),q)console.log(` current \`stacks\` constraint: ${q}
|
|
4
|
-
`);let b=_(
|
|
5
|
-
`),
|
|
6
|
-
`),
|
|
4
|
+
`);let b=_(H,E,I);if(b.length===0&&!z.force)console.log(`\u2714 Already up to date \u2014 every framework dependency matches the target.
|
|
5
|
+
`),N.exit(0);if(b.length>0){console.log(" The following dependencies will be updated:");let M=Math.max(...b.map((O)=>O.name.length));for(let O of b)console.log(` ${O.name.padEnd(M)} ${O.from} \u2192 ${O.to}`);console.log("")}if(z.dryRun)console.log(` --dry-run: no files were written and nothing was installed.
|
|
6
|
+
`),N.exit(0);if(b.length>0){let M=K.endsWith(`
|
|
7
7
|
`)?`
|
|
8
|
-
`:"";W(
|
|
9
|
-
`)
|
|
8
|
+
`:"";W(J,`${JSON.stringify(H,null,2)}${M}`),console.log("\u2714 Updated package.json")}let Q=["stacks",...[...I].filter((M)=>M.startsWith("@stacksjs/"))];if(z.noPostinstall)console.log(" --no-postinstall: skipping install. Run this to pull the new versions:"),console.log(` bun update ${Q.slice(0,3).join(" ")} \u2026
|
|
9
|
+
`),N.exit(0);console.log(` Installing\u2026
|
|
10
|
+
`);let G=await Y(`bun update ${Q.join(" ")}`,{cwd:A});if(G&&typeof G==="object"&&"isErr"in G?typeof G.isErr==="function"?G.isErr():G.isErr===!0:!1)console.error("\n\u2717 The install step failed. Your package.json was updated \u2014 resolve the error and re-run `bun update`.\n"),N.exit(1);console.log(`
|
|
10
11
|
\u2714 Upgraded to stacks@${E}. Review the changelog: https://github.com/stacksjs/stacks/releases/tag/v${E}
|
|
11
|
-
`),
|
|
12
|
+
`),N.exit(0)}export{T as upgradeStacksPackages};
|
package/dist/upgrade.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-h3163h5z.js";import{readFileSync as K}from"fs";import A from"process";import{intro as L,outro as B,runCommand as I}from"@stacksjs/cli";import{NpmScript as M}from"@stacksjs/enums";import{log as G}from"@stacksjs/logging";import{projectPath as J}from"@stacksjs/path";import*as w from"@stacksjs/storage";import{ExitCode as H}from"@stacksjs/types";var{version:Q}=JSON.parse(K(new URL("../package.json",import.meta.url),"utf8"));function _(b){try{console.log("checkForUncommittedChanges",b)}catch(q){console.error(q)}}async function $(b){let z=J("updates");if(w.doesFolderExist(z))await w.deleteFolder(z);G.info("Downloading framework updates..."),await I("giget stacks updates",b),G.success(`Your framework updated correctly to version: v${Q}`)}async function v(){let b=await L("buddy upgrade:dependencies"),q=await I(M.UpgradeDependencies,{cwd:J()});if(q.isErr)await B("While running the upgrade:dependencies command, there was an issue",{startTime:b,useSeconds:!0},q.error),A.exit(H.FatalError);await B("Freshly updated your dependencies.",{startTime:b,useSeconds:!0}),A.exit(H.Success)}export{v as updateDependencies,$ as downloadFrameworkUpdate,_ as checkForUncommittedChanges};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.73",
|
|
5
5
|
"description": "The Stacks actions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -65,22 +65,30 @@
|
|
|
65
65
|
"@stacksjs/ts-md": "^0.1.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@stacksjs/api": "0.70.
|
|
69
|
-
"@stacksjs/cli": "0.70.
|
|
70
|
-
"@stacksjs/config": "0.70.
|
|
71
|
-
"@stacksjs/database": "0.70.
|
|
68
|
+
"@stacksjs/api": "0.70.73",
|
|
69
|
+
"@stacksjs/cli": "0.70.73",
|
|
70
|
+
"@stacksjs/config": "0.70.73",
|
|
71
|
+
"@stacksjs/database": "0.70.73",
|
|
72
72
|
"@stacksjs/tlsx": "^0.13.2",
|
|
73
73
|
"better-dx": "^0.2.12",
|
|
74
|
-
"@stacksjs/dns": "0.70.
|
|
75
|
-
"@stacksjs/enums": "0.70.
|
|
76
|
-
"@stacksjs/env": "0.70.
|
|
77
|
-
"@stacksjs/error-handling": "0.70.
|
|
78
|
-
"@stacksjs/logging": "0.70.
|
|
79
|
-
"@stacksjs/path": "0.70.
|
|
80
|
-
"@stacksjs/security": "0.70.
|
|
81
|
-
"@stacksjs/storage": "0.70.
|
|
82
|
-
"@stacksjs/strings": "0.70.
|
|
83
|
-
"@stacksjs/utils": "0.70.
|
|
84
|
-
"@stacksjs/validation": "0.70.
|
|
74
|
+
"@stacksjs/dns": "0.70.73",
|
|
75
|
+
"@stacksjs/enums": "0.70.73",
|
|
76
|
+
"@stacksjs/env": "0.70.73",
|
|
77
|
+
"@stacksjs/error-handling": "0.70.73",
|
|
78
|
+
"@stacksjs/logging": "0.70.73",
|
|
79
|
+
"@stacksjs/path": "0.70.73",
|
|
80
|
+
"@stacksjs/security": "0.70.73",
|
|
81
|
+
"@stacksjs/storage": "0.70.73",
|
|
82
|
+
"@stacksjs/strings": "0.70.73",
|
|
83
|
+
"@stacksjs/utils": "0.70.73",
|
|
84
|
+
"@stacksjs/validation": "0.70.73"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"pickier": "^0.1.28"
|
|
88
|
+
},
|
|
89
|
+
"peerDependenciesMeta": {
|
|
90
|
+
"pickier": {
|
|
91
|
+
"optional": true
|
|
92
|
+
}
|
|
85
93
|
}
|
|
86
94
|
}
|
|
File without changes
|