rebuildjs 0.29.2 → 0.30.0

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/app/index.test.ts CHANGED
@@ -45,9 +45,12 @@ test.after.each(()=>{
45
45
  app_ctx.s.app.clear()
46
46
  })
47
47
  test('app_ctx', ()=>{
48
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
48
49
  /* eslint-disable @typescript-eslint/no-unused-vars */
50
+ // @ts-ignore TS6196
49
51
  type test_app_ctx = Expect<Equal<typeof app_ctx, Ctx<'app'>>>
50
52
  /* eslint-enable @typescript-eslint/no-unused-vars */
53
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
51
54
  })
52
55
  test('port', ()=>{
53
56
  equal(process.env.PORT, undefined)
package/asset/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare const assets_:ctx__get_T<has_route_T, assets_T>
12
12
  export declare const assets__set:ctx__set_T<has_route_T, assets_T>
13
13
  export declare function assets__assign<ctx_T extends has_route_T>(
14
14
  ctx:ctx_T,
15
- ..._assets_a:assets_T[]
15
+ ..._assets_a:Partial<assets_T>[]
16
16
  ):assets_T
17
17
  export declare function assets__new(..._assets_a:(Partial<assets_T>|undefined)[]):assets_T
18
18
  export type assets_T = {
@@ -68,13 +68,14 @@ test('assets', ()=>{
68
68
  })
69
69
  test('assets|types', ()=>{
70
70
  const route_ctx = route_ctx_(middleware_ctx_())
71
+ /* eslint-disable @typescript-eslint/ban-ts-comment */
71
72
  /* eslint-disable @typescript-eslint/no-unused-vars */
73
+ // @ts-ignore TS6196
72
74
  type test_ctx = Expect<Equal<typeof route_ctx, Ctx<''|'app'|'middleware'|'route'>>>
73
- /* eslint-enable @typescript-eslint/no-unused-vars */
74
- /* eslint-disable @typescript-eslint/no-unused-vars */
75
75
  // @ts-expect-error TS2345
76
76
  type test_assets$_ = Expect<Equal<typeof assets$_, number>>
77
77
  /* eslint-enable @typescript-eslint/no-unused-vars */
78
+ /* eslint-enable @typescript-eslint/ban-ts-comment */
78
79
  })
79
80
  test('assets__assign', async ()=>{
80
81
  const route_ctx = route_ctx_(middleware_ctx_())
@@ -90,16 +91,16 @@ test('assets__assign', async ()=>{
90
91
  css_a: ['/index.server-SVR0SVR0.css', '/index.browser-BRS0BRS0.css'],
91
92
  script_a: ['/index.browser-BRS0BRS0.js'],
92
93
  })
93
- assets__assign(route_ctx, assets__new({
94
+ assets__assign(route_ctx, {
94
95
  css_a: ['/test0.css']
95
- }))
96
+ })
96
97
  equal(assets_(route_ctx), {
97
98
  css_a: ['/index.server-SVR0SVR0.css', '/index.browser-BRS0BRS0.css', '/test0.css'],
98
99
  script_a: ['/index.browser-BRS0BRS0.js'],
99
100
  })
100
- assets__assign(route_ctx, assets__new({
101
+ assets__assign(route_ctx, {
101
102
  script_a: ['/test0.js']
102
- }))
103
+ })
103
104
  equal(assets_(route_ctx), {
104
105
  css_a: ['/index.server-SVR0SVR0.css', '/index.browser-BRS0BRS0.css', '/test0.css'],
105
106
  script_a: ['/index.browser-BRS0BRS0.js', '/test0.js'],
package/package.json CHANGED
@@ -1,88 +1,87 @@
1
1
  {
2
- "name": "rebuildjs",
3
- "version": "0.29.2",
4
- "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
- "keywords": [
6
- "reactive",
7
- "multi page apps",
8
- "web app",
9
- "web server",
10
- "esbuild",
11
- "rmemo",
12
- "ctx-core"
13
- ],
14
- "homepage": "https://github.com/rebuildjs/rebuildjs#readme",
15
- "bugs": {
16
- "url": "https://github.com/rebuildjs/rebuildjs/issues"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/rebuildjs/rebuildjs.git"
21
- },
22
- "license": "Apache-2.0",
23
- "author": "Brian Takita",
24
- "type": "module",
25
- "files": [
26
- "*.d.ts",
27
- "*.js",
28
- "*.json",
29
- "_fixtures",
30
- "app",
31
- "asset",
32
- "browser",
33
- "build",
34
- "ctx",
35
- "metafile",
36
- "metafile_l0",
37
- "middleware",
38
- "server",
39
- "types"
40
- ],
41
- "types": "./index.d.ts",
42
- "exports": {
43
- ".": "./index.js",
44
- "./app": "./app/index.js",
45
- "./asset": "./asset/index.js",
46
- "./browser": "./browser/index.js",
47
- "./build": "./build/index.js",
48
- "./ctx": "./ctx/index.js",
49
- "./metafile": "./metafile/index.js",
50
- "./middleware": "./middleware/index.js",
51
- "./server": "./server/index.js",
52
- "./types": "./types/index.js",
53
- "./package.json": "./package.json"
54
- },
55
- "scripts": {
56
- "build": ":",
57
- "clean": ":",
58
- "exec": "$@",
59
- "prepublishOnly": "pnpm clean && pnpm build && pnpm test",
60
- "test": "pnpm test:unit && pnpm test:types",
61
- "test:types": "check-dts",
62
- "test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
63
- "test:unit:coverage": "c8 pnpm test:unit"
64
- },
65
- "dependencies": {
66
- "ctx-core": "^5.10.0",
67
- "elysia": "^0.8.8",
68
- "esbuild": "^0.19.11",
69
- "fdir": "^6.1.1",
70
- "picomatch": "^3.0.1"
71
- },
72
- "devDependencies": {
73
- "@typescript-eslint/eslint-plugin": "^6.17.0",
74
- "@typescript-eslint/parser": "^6.17.0",
75
- "c8": "^8.0.1",
76
- "check-dts": "^0.7.2",
77
- "eslint": "^8.56.0",
78
- "esmock": "^2.6.0",
79
- "tsx": "^4.7.0",
80
- "typescript": "next",
81
- "uvu": "^0.5.6"
82
- },
83
- "publishConfig": {
84
- "access": "public",
85
- "cache": "~/.npm"
86
- },
87
- "sideEffects": false
88
- }
2
+ "name": "rebuildjs",
3
+ "version": "0.30.0",
4
+ "description": "Reactive esbuild...simple hackable alternative to vite for Multi Page Apps",
5
+ "keywords": [
6
+ "reactive",
7
+ "multi page apps",
8
+ "web app",
9
+ "web server",
10
+ "esbuild",
11
+ "rmemo",
12
+ "ctx-core"
13
+ ],
14
+ "homepage": "https://github.com/rebuildjs/rebuildjs#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/rebuildjs/rebuildjs/issues"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/rebuildjs/rebuildjs.git"
21
+ },
22
+ "license": "Apache-2.0",
23
+ "author": "Brian Takita",
24
+ "type": "module",
25
+ "files": [
26
+ "*.d.ts",
27
+ "*.js",
28
+ "*.json",
29
+ "_fixtures",
30
+ "app",
31
+ "asset",
32
+ "browser",
33
+ "build",
34
+ "ctx",
35
+ "metafile",
36
+ "metafile_l0",
37
+ "middleware",
38
+ "server",
39
+ "types"
40
+ ],
41
+ "types": "./index.d.ts",
42
+ "exports": {
43
+ ".": "./index.js",
44
+ "./app": "./app/index.js",
45
+ "./asset": "./asset/index.js",
46
+ "./browser": "./browser/index.js",
47
+ "./build": "./build/index.js",
48
+ "./ctx": "./ctx/index.js",
49
+ "./metafile": "./metafile/index.js",
50
+ "./middleware": "./middleware/index.js",
51
+ "./server": "./server/index.js",
52
+ "./types": "./types/index.js",
53
+ "./package.json": "./package.json"
54
+ },
55
+ "dependencies": {
56
+ "ctx-core": "^5.11.0",
57
+ "elysia": "^0.8.8",
58
+ "esbuild": "^0.19.11",
59
+ "fdir": "^6.1.1",
60
+ "picomatch": "^3.0.1"
61
+ },
62
+ "devDependencies": {
63
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
64
+ "@typescript-eslint/parser": "^6.17.0",
65
+ "c8": "^8.0.1",
66
+ "check-dts": "^0.7.2",
67
+ "eslint": "^8.56.0",
68
+ "esmock": "^2.6.0",
69
+ "tsx": "^4.7.0",
70
+ "typescript": "next",
71
+ "uvu": "^0.5.6"
72
+ },
73
+ "publishConfig": {
74
+ "access": "public",
75
+ "cache": "~/.npm"
76
+ },
77
+ "sideEffects": false,
78
+ "scripts": {
79
+ "build": ":",
80
+ "clean": ":",
81
+ "exec": "$@",
82
+ "test": "pnpm test:unit && pnpm test:types",
83
+ "test:types": "check-dts",
84
+ "test:unit": "NODE_OPTIONS=--loader=esmock tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'",
85
+ "test:unit:coverage": "c8 pnpm test:unit"
86
+ }
87
+ }