@b9g/shovel 0.2.15 → 0.2.16
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
|
@@ -2,6 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Shovel will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.16] - 2026-02-26
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **`@b9g/shovel`** - `build.minify` config in `shovel.json` now propagates to client asset builds. Previously client JS/CSS was always minified regardless of the setting (closes #67)
|
|
10
|
+
|
|
11
|
+
## @b9g/router 0.2.5 - 2026-02-25
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- **`@b9g/router`** - Trailing slash middleware now also redirects when a catch-all route or error-handling middleware returns a 404 Response (not just thrown `NotFound` errors). In 0.2.4 the middleware only caught thrown errors, so catch-all routes returning 404 responses would not trigger the redirect
|
|
16
|
+
|
|
17
|
+
## @b9g/router 0.2.4 - 2026-02-25
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **`@b9g/router`** - Trailing slash middleware now only redirects as a last resort. Previously it eagerly redirected before route matching, so routes explicitly defined with (or without) a trailing slash would always be redirected. Now the middleware yields to route matching first and only redirects on 404
|
|
22
|
+
- **`@b9g/router`** - Added `"append"` as an alias for `"add"` in `trailingSlash()` mode
|
|
23
|
+
|
|
24
|
+
## [0.2.15] - 2026-02-25
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
- **`create-shovel`** - Fixed linting in generated JS projects (missing browser globals)
|
|
29
|
+
- **`create-shovel`** - Fixed linting in generated Crank projects (now uses `eslint-plugin-crank`)
|
|
30
|
+
- **`create-shovel`** - Fixed Crank `Counter` to use `this.refresh()` callback pattern
|
|
31
|
+
|
|
32
|
+
## [0.2.14] - 2026-02-24
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
- **`create-shovel`** - All static-site and full-stack templates now use bundled client entry points through Shovel's asset pipeline instead of CDN links or inline scripts
|
|
37
|
+
- **`create-shovel`** - Added type declarations (`env.d.ts`) for htmx and Alpine in TypeScript projects
|
|
38
|
+
- **`create-shovel`** - Generated projects include ESLint configuration
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
- **`@b9g/platform`** - Added `Window.addEventListener` overload for ServiceWorker event types in `globals.d.ts`
|
|
43
|
+
|
|
5
44
|
## [0.2.13] - 2026-02-24
|
|
6
45
|
|
|
7
46
|
### Bug Fixes
|
package/bin/cli.js
CHANGED
|
@@ -75,7 +75,7 @@ program.command("develop <entrypoint>").description("Start development server wi
|
|
|
75
75
|
DEFAULTS.WORKERS
|
|
76
76
|
).option("--platform <name>", "Runtime platform (node, cloudflare, bun)").action(async (entrypoint, options) => {
|
|
77
77
|
checkPlatformReexec(options);
|
|
78
|
-
const { developCommand } = await import("../src/_chunks/develop-
|
|
78
|
+
const { developCommand } = await import("../src/_chunks/develop-BR7WCNBK.js");
|
|
79
79
|
await developCommand(entrypoint, options, config);
|
|
80
80
|
});
|
|
81
81
|
program.command("create [name]").description("Create a new Shovel project").action(async (name) => {
|
|
@@ -91,7 +91,7 @@ program.command("build <entrypoint>").description("Build app for production").op
|
|
|
91
91
|
"Run ServiceWorker lifecycle after build (install or activate, default: activate)"
|
|
92
92
|
).action(async (entrypoint, options) => {
|
|
93
93
|
checkPlatformReexec(options);
|
|
94
|
-
const { buildCommand } = await import("../src/_chunks/build-
|
|
94
|
+
const { buildCommand } = await import("../src/_chunks/build-EGT4OE4O.js");
|
|
95
95
|
await buildCommand(entrypoint, options, config);
|
|
96
96
|
process.exit(0);
|
|
97
97
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b9g/shovel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
4
4
|
"description": "ServiceWorker-first universal deployment platform. Write ServiceWorker apps once, deploy anywhere (Node/Bun/Cloudflare). Registry-based multi-app orchestration.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@b9g/assets": "^0.2.1",
|
|
36
36
|
"@b9g/crank": "^0.7.7",
|
|
37
37
|
"@b9g/libuild": "^0.1.24",
|
|
38
|
-
"@b9g/router": "^0.2.
|
|
38
|
+
"@b9g/router": "^0.2.5",
|
|
39
39
|
"@eslint/js": "^9.0.0",
|
|
40
40
|
"@logtape/file": "^2.0.0",
|
|
41
41
|
"@types/bun": "^1.3.4",
|
|
@@ -44,6 +44,7 @@ function normalizePath(basePath) {
|
|
|
44
44
|
}
|
|
45
45
|
function assetsPlugin(options = {}) {
|
|
46
46
|
const outDir = options.outDir ?? "dist";
|
|
47
|
+
const minify = options.minify ?? true;
|
|
47
48
|
const sharedManifest = options.sharedManifest;
|
|
48
49
|
const manifest = {
|
|
49
50
|
assets: {},
|
|
@@ -114,7 +115,7 @@ function assetsPlugin(options = {}) {
|
|
|
114
115
|
target: ["es2022", "chrome90"],
|
|
115
116
|
platform: "browser",
|
|
116
117
|
write: false,
|
|
117
|
-
minify
|
|
118
|
+
minify,
|
|
118
119
|
// outdir is required for esbuild to know where to put extracted CSS and chunks
|
|
119
120
|
outdir: outDir,
|
|
120
121
|
// Apply polyfills and user-provided build options
|
|
@@ -216,7 +217,7 @@ function assetsPlugin(options = {}) {
|
|
|
216
217
|
entryPoints: [entryPath],
|
|
217
218
|
bundle: true,
|
|
218
219
|
write: false,
|
|
219
|
-
minify
|
|
220
|
+
minify,
|
|
220
221
|
// outdir required for esbuild to generate output paths
|
|
221
222
|
outdir: outDir,
|
|
222
223
|
plugins,
|
|
@@ -871,6 +872,7 @@ var ServerBundler = class {
|
|
|
871
872
|
assetsPlugin({
|
|
872
873
|
outDir: outputDir,
|
|
873
874
|
plugins: userPlugins,
|
|
875
|
+
minify,
|
|
874
876
|
jsx: jsxOptions.jsx,
|
|
875
877
|
jsxFactory: jsxOptions.jsxFactory,
|
|
876
878
|
jsxFragment: jsxOptions.jsxFragment,
|