create-absolutejs 0.17.0 → 0.17.1

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 ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ All notable changes to `create-absolutejs`.
4
+
5
+ This file is generated by `absolute-changelog` from the entries in
6
+ `changelog/`. Edit an entry, not this file — and add new ones under
7
+ `changelog/unreleased/`.
8
+
9
+ ## 0.17.1 — 2026-09-22
10
+
11
+ ### Fixed
12
+
13
+ - **Generate the Elysia 2 onError lifecycle instead of an unsupported on error hook**
package/changelog.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "contract": 1,
3
+ "name": "create-absolutejs",
4
+ "releases": [
5
+ {
6
+ "version": "0.17.1",
7
+ "date": "2026-09-22",
8
+ "changes": [
9
+ {
10
+ "kind": "fixed",
11
+ "summary": "Generate the Elysia 2 onError lifecycle instead of an unsupported on error hook"
12
+ }
13
+ ]
14
+ }
15
+ ]
16
+ }
@@ -75,9 +75,8 @@ const server = new Elysia()
75
75
  ${useBlock}${authOption === 'abs' ? `\n${guardBlock}` : ''}
76
76
  ${routesBlock}
77
77
  .use(networking)
78
- .on('error', err => {
79
- const { request } = err
80
- console.error(\`Server error on \${request.method} \${request.url}: \${err.message}\`)
78
+ .onError(({ request, error }) => {
79
+ console.error(\`Server error on \${request.method} \${request.url}\`, error)
81
80
  })
82
81
 
83
82
  export type Server = typeof server
package/package.json CHANGED
@@ -11,6 +11,7 @@
11
11
  "description": "A CLI tool to create a new AbsoluteJS project",
12
12
  "devDependencies": {
13
13
  "@absolutejs/absolute": "0.20.0-beta.0",
14
+ "@absolutejs/changelog": "^0.6.0",
14
15
  "@eslint/compat": "2.0.2",
15
16
  "@stylistic/eslint-plugin": "5.9.0",
16
17
  "@types/bun": "1.3.8",
@@ -31,6 +32,8 @@
31
32
  "vue": "3.5.27"
32
33
  },
33
34
  "files": [
35
+ "CHANGELOG.md",
36
+ "changelog.json",
34
37
  "dist",
35
38
  "dist/templates"
36
39
  ],
@@ -50,9 +53,10 @@
50
53
  "release": "bun run format && bun run check:package && bun publish",
51
54
  "test": "cd absolutejs-project && bun dev",
52
55
  "test:unit": "bun test tests/",
53
- "check:package": "bun run typecheck && bun run test:unit && bun run build",
54
- "typecheck": "bun run tsc --noEmit"
56
+ "check:package": "bun run typecheck && bun run test:unit && bun run build && absolute-changelog check",
57
+ "typecheck": "bun run tsc --noEmit",
58
+ "prepublishOnly": "bun run check:package"
55
59
  },
56
60
  "type": "module",
57
- "version": "0.17.0"
61
+ "version": "0.17.1"
58
62
  }