@stacksjs/defaults 0.75.580 → 0.75.582

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.
@@ -146,6 +146,8 @@ buddy build:functions # just the `functions` packages
146
146
  buddy build:components # just the `components` packages
147
147
  buddy build:web-components # just the `web-components` packages
148
148
  buddy libs:publish --dry-run
149
+ buddy libs:publish --tag alpha --dry-run # validate an explicit pre-release channel
150
+ buddy libs:publish --publisher bun --tag alpha --dry-run # select a native npm publisher
149
151
  buddy libs:publish # after a build; refuses a package with no dist
150
152
  ```
151
153
 
@@ -157,6 +159,10 @@ generated and gitignored.
157
159
  and refuses when pantry is not on PATH. A package that apps install with Bun or
158
160
  npm sets `registry: 'npm'`, which publishes with `pantry publish --npm`, or with
159
161
  `bun publish` / `npm publish` where pantry is not installed.
162
+ `--publisher bun|npm|pantry` explicitly selects an installed publisher without falling back. Bun and npm can only target npm; Pantry can target either configured registry. Omit the selector to preserve installed-publisher discovery.
163
+
164
+ `--tag alpha` forwards an explicit lower-case distribution tag to Pantry, Bun or npm. Omit it to preserve the publisher's default tag. Tags must begin with a letter and contain lower-case letters, digits, underscores or hyphens; version-like tags are rejected. A package's first npm publication may also acquire the registry's initial `latest` tag, so verify actual registry tags after release.
165
+
160
166
  Each package publishes its own `readme` (a project-relative Markdown file) as
161
167
  README.md, or a short one the build writes from its `description`.
162
168
 
@@ -351,6 +351,7 @@ SQLite's SQL on a Turso or `sqld` server. Configure `TURSO_DATABASE_URL`
351
351
  retention: 7, // days
352
352
  pruneFrequency: 24, // hours
353
353
  excludedQueries: ['query_logs'],
354
+ logHousekeeping: false, // true also records the queue's own polling of jobs, queue_workers, queue_circuit_state
354
355
  analysis: { enabled: true, analyzeAll: false, explainPlan: true, suggestions: true }
355
356
  }
356
357
  }
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.75.580",
5
+ "version": "0.75.582",
6
6
  "description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/defaults",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.580",
5
+ "version": "0.75.582",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/stacksjs/stacks.git",
@@ -45,14 +45,14 @@
45
45
  "dependencies": {
46
46
  "@iconify-json/f7": "^1.2.2",
47
47
  "@iconify-json/hugeicons": "^1.2.35",
48
- "@stacksjs/mobile": "0.75.580",
48
+ "@stacksjs/mobile": "0.75.582",
49
49
  "@stacksjs/sanitizer": "^0.2.872",
50
50
  "@stacksjs/stx": "^0.2.872",
51
- "@stacksjs/strings": "0.75.580",
51
+ "@stacksjs/strings": "0.75.582",
52
52
  "@xterm/addon-fit": "^0.11.0",
53
53
  "@xterm/xterm": "^6.0.0",
54
54
  "ts-qr-codes": "^0.1.8",
55
- "@stacksjs/support": "0.75.580",
56
- "@stacksjs/browser": "0.75.580"
55
+ "@stacksjs/support": "0.75.582",
56
+ "@stacksjs/browser": "0.75.582"
57
57
  }
58
58
  }
@@ -16,9 +16,23 @@ declare const selectedWorkspace: string | null
16
16
  declare const consentAction: string
17
17
  declare const csrfToken: string
18
18
 
19
- const clientTypeLabel = consent.client.type === 'public' ? 'Public client' : 'Confidential client'
19
+ /*
20
+ * This file is a page as well as the action's template, so `/auth/oauth/consent`
21
+ * can be asked for on its own: by a visitor, a crawler, or the server warming
22
+ * its pages at start. Nothing hands it a request then. Reading `consent`
23
+ * directly threw "consent is not defined", which left every variable in this
24
+ * script undefined and rendered an empty shell with a warning on each visit.
25
+ * `typeof` is the one read of an undeclared name that does not throw. Without
26
+ * an authorization request there is nothing to consent to, so it is a 404.
27
+ */
28
+ const hasRequest = typeof consent !== 'undefined'
29
+ if (!hasRequest)
30
+ notFound()
31
+
32
+ const clientTypeLabel = hasRequest && consent.client.type === 'public' ? 'Public client' : 'Confidential client'
20
33
  </script>
21
34
 
35
+ @if (hasRequest)
22
36
  <main class="flex items-center justify-center px-4 py-10 sm:px-6 min-h-dvh text-neutral-950 dark:text-white bg-neutral-50 dark:bg-neutral-950">
23
37
  <section class="max-w-xl w-full" aria-labelledby="oauth-consent-title">
24
38
  <div class="flex gap-2 items-center justify-center mb-5 text-neutral-500 text-sm dark:text-neutral-400">
@@ -132,3 +146,4 @@ const clientTypeLabel = consent.client.type === 'public' ? 'Public client' : 'Co
132
146
  </p>
133
147
  </section>
134
148
  </main>
149
+ @endif