tungsten 0.1.70 → 0.1.72

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.
Files changed (86) hide show
  1. package/dist/Components.d.ts +2 -2
  2. package/dist/Components.d.ts.map +1 -1
  3. package/dist/Framework.d.ts.map +1 -1
  4. package/dist/Framework.js +11 -7
  5. package/dist/FrameworkConfig.d.ts +3 -1
  6. package/dist/FrameworkConfig.d.ts.map +1 -1
  7. package/dist/Instance/Instance.d.ts +3 -1
  8. package/dist/Instance/Instance.d.ts.map +1 -1
  9. package/dist/Instance/Instance.js +39 -10
  10. package/dist/Servers/DevServer.d.ts +4 -1
  11. package/dist/Servers/DevServer.d.ts.map +1 -1
  12. package/dist/Servers/DevServer.js +143 -48
  13. package/dist/Servers/ProdServer.d.ts +0 -1
  14. package/dist/Servers/ProdServer.d.ts.map +1 -1
  15. package/dist/Servers/ProdServer.js +48 -12
  16. package/dist/Servers/TungstenServer.d.ts.map +1 -1
  17. package/dist/Servers/TungstenServer.js +21 -7
  18. package/dist/Servers/hono/DevServerHono.d.ts +2 -0
  19. package/dist/Servers/hono/DevServerHono.d.ts.map +1 -0
  20. package/dist/Servers/hono/DevServerHono.js +427 -0
  21. package/dist/Servers/hono/ProdServerHono.d.ts +2 -0
  22. package/dist/Servers/hono/ProdServerHono.d.ts.map +1 -0
  23. package/dist/Servers/hono/ProdServerHono.js +313 -0
  24. package/dist/Servers/hono/TungstenServerHono.d.ts +6 -0
  25. package/dist/Servers/hono/TungstenServerHono.d.ts.map +1 -0
  26. package/dist/Servers/hono/TungstenServerHono.js +53 -0
  27. package/dist/Servers/initStores.js +1 -1
  28. package/dist/Servers/loadEnvsDev.d.ts.map +1 -1
  29. package/dist/Servers/loadEnvsDev.js +9 -1
  30. package/dist/Servers/tungstenCorePrivateEnvSchema.d.ts +10 -0
  31. package/dist/Servers/tungstenCorePrivateEnvSchema.d.ts.map +1 -0
  32. package/dist/Servers/tungstenCorePrivateEnvSchema.js +24 -0
  33. package/dist/Store/InternalStoreSchema.d.ts +3 -1
  34. package/dist/Store/InternalStoreSchema.d.ts.map +1 -1
  35. package/dist/Store/InternalStoreSchema.js +3 -1
  36. package/dist/api/ApiEndpointHono.d.ts +3 -0
  37. package/dist/api/ApiEndpointHono.d.ts.map +1 -0
  38. package/dist/api/ApiEndpointHono.js +1 -0
  39. package/dist/api/ApiRouteHono.d.ts +7 -0
  40. package/dist/api/ApiRouteHono.d.ts.map +1 -0
  41. package/dist/api/ApiRouteHono.js +1 -0
  42. package/dist/api/ApiRoutesHono.d.ts +5 -0
  43. package/dist/api/ApiRoutesHono.d.ts.map +1 -0
  44. package/dist/api/ApiRoutesHono.js +1 -0
  45. package/dist/api/getApiRoutesHono.d.ts +6 -0
  46. package/dist/api/getApiRoutesHono.d.ts.map +1 -0
  47. package/dist/api/getApiRoutesHono.js +14 -0
  48. package/dist/build/modifySassImports.sxyt.js +1 -1
  49. package/dist/components/RouteRedirectComponent.d.ts +12 -0
  50. package/dist/components/RouteRedirectComponent.d.ts.map +1 -0
  51. package/dist/components/RouteRedirectComponent.js +15 -0
  52. package/dist/components/WebRedirectComponent.d.ts +11 -0
  53. package/dist/components/WebRedirectComponent.d.ts.map +1 -0
  54. package/dist/components/{RedirectComponent.js → WebRedirectComponent.js} +2 -2
  55. package/dist/defaultConfig.d.ts +2 -0
  56. package/dist/defaultConfig.d.ts.map +1 -1
  57. package/dist/defaultConfig.js +3 -1
  58. package/dist/env/Interfaces.d.ts +2 -4
  59. package/dist/env/Interfaces.d.ts.map +1 -1
  60. package/dist/frameworkConfigSchema.d.ts +7 -7
  61. package/dist/indexInner.d.ts +5 -2
  62. package/dist/indexInner.d.ts.map +1 -1
  63. package/dist/indexInner.js +4 -1
  64. package/dist/makeFinalConfig.d.ts.map +1 -1
  65. package/dist/makeFinalConfig.js +1 -1
  66. package/dist/routing/RedirectCode.d.ts +2 -0
  67. package/dist/routing/RedirectCode.d.ts.map +1 -0
  68. package/dist/routing/RedirectCode.js +1 -0
  69. package/dist/routing/RouteDataFunction.type.d.ts +2 -1
  70. package/dist/routing/RouteDataFunction.type.d.ts.map +1 -1
  71. package/dist/routing/RouteDataReturnType.d.ts +2 -1
  72. package/dist/routing/RouteDataReturnType.d.ts.map +1 -1
  73. package/dist/routing/Routes.d.ts +5 -0
  74. package/dist/routing/Routes.d.ts.map +1 -1
  75. package/dist/routing/RoutingRedirect.d.ts +1 -1
  76. package/dist/routing/RoutingRedirect.d.ts.map +1 -1
  77. package/dist/routing/WebRedirect.d.ts +8 -0
  78. package/dist/routing/WebRedirect.d.ts.map +1 -0
  79. package/dist/routing/WebRedirect.js +11 -0
  80. package/dist/routing/registerGlobalData.d.ts +3 -1
  81. package/dist/routing/registerGlobalData.d.ts.map +1 -1
  82. package/dist/routing/registerGlobalData.js +4 -2
  83. package/package.json +35 -31
  84. package/types/helpers.d.ts +2 -0
  85. package/dist/components/RedirectComponent.d.ts +0 -12
  86. package/dist/components/RedirectComponent.d.ts.map +0 -1
@@ -3,7 +3,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
3
3
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
4
  import { isDev } from 'tungsten/isDev.js';
5
5
  import { TungstenSimpleComponent } from "../Components.js";
6
- export class RedirectComponent extends TungstenSimpleComponent {
6
+ export class WebRedirectComponent extends TungstenSimpleComponent {
7
7
  constructor(...args) {
8
8
  super(...args);
9
9
  //__tungstenComponentType = 'redirect' as const
@@ -12,4 +12,4 @@ export class RedirectComponent extends TungstenSimpleComponent {
12
12
  _defineProperty(this, "content", () => isDev ? 'This should redirect - if you see this, redirection didn\'t work' : null);
13
13
  }
14
14
  }
15
- _defineProperty(RedirectComponent, "__tungstenRedirect", true);
15
+ _defineProperty(WebRedirectComponent, "__tungstenRedirect", true);
@@ -13,6 +13,8 @@ export declare const defaultConfig: {
13
13
  packageSystem: "rewrites";
14
14
  ignoreDirs: string[];
15
15
  apiPath: string;
16
+ suppressNoHeadWarning: false;
17
+ suppressOriginMismatchWarning: false;
16
18
  };
17
19
  export type FrameworkConfigDefault = typeof defaultConfig;
18
20
  //# sourceMappingURL=defaultConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../src/defaultConfig.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;CAmBS,CAAA;AAEnC,MAAM,MAAM,sBAAsB,GAAG,OAAO,aAAa,CAAA"}
1
+ {"version":3,"file":"defaultConfig.d.ts","sourceRoot":"","sources":["../src/defaultConfig.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAqBS,CAAA;AAEnC,MAAM,MAAM,sBAAsB,GAAG,OAAO,aAAa,CAAA"}
@@ -17,6 +17,8 @@ export const defaultConfig = {
17
17
  // apiRoutes
18
18
  ignoreDirs: ['server'],
19
19
  // rename to ignoreFolders?
20
- apiPath: '/api'
20
+ apiPath: '/api',
21
21
  //debug: false // moved to env
22
+ suppressNoHeadWarning: false,
23
+ suppressOriginMismatchWarning: false
22
24
  };
@@ -1,10 +1,8 @@
1
+ import type { TungstenCorePrivateEnv } from '../Servers/tungstenCorePrivateEnvSchema.js';
1
2
  declare global {
2
- interface TungstenPrivateEnv {
3
- TUNGSTEN_SERVER_PORT: number;
4
- DEBUG?: boolean;
3
+ interface TungstenPrivateEnv extends TungstenCorePrivateEnv {
5
4
  }
6
5
  export interface TungstenPublicEnv {
7
6
  }
8
7
  }
9
- export {};
10
8
  //# sourceMappingURL=Interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Interfaces.d.ts","sourceRoot":"","sources":["../../src/env/Interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,kBAAkB;QACxB,oBAAoB,EAAE,MAAM,CAAA;QAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;KAClB;IACD,MAAM,WAAW,iBAAiB;KAAG;CACxC"}
1
+ {"version":3,"file":"Interfaces.d.ts","sourceRoot":"","sources":["../../src/env/Interfaces.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAA;AAExF,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,kBAAmB,SAAQ,sBAAsB;KAAG;IAC9D,MAAM,WAAW,iBAAiB;KAAG;CACxC"}
@@ -1,6 +1,6 @@
1
1
  import { ParserOptions as BabelParserOptions } from '@babel/parser';
2
2
  import { SiteBasePath } from './render/HeadData.js';
3
- declare const frameworkConfigWithRootComponentValidator: import("arktype/internal/methods/object.ts").ObjectType<{
3
+ declare const frameworkConfigWithRootComponentValidator: import("arktype/internal/variants/object.ts").ObjectType<{
4
4
  codeDir?: string;
5
5
  copy?: string;
6
6
  exclude?: string;
@@ -9,7 +9,7 @@ declare const frameworkConfigWithRootComponentValidator: import("arktype/interna
9
9
  publicDir?: string;
10
10
  assetsDir?: string;
11
11
  styleImportBase?: string;
12
- siteBasePath?: string;
12
+ siteBasePath?: "" | `/${string}`;
13
13
  clientSideNav?: boolean;
14
14
  staticSite?: boolean;
15
15
  routesLocation?: [string, string];
@@ -44,7 +44,7 @@ declare const frameworkConfigWithRootComponentValidator: import("arktype/interna
44
44
  rootComponent: string;
45
45
  useRootComponent?: true;
46
46
  }, {}>;
47
- declare const frameworkConfigWithoutRootComponentValidator: import("arktype/internal/methods/object.ts").ObjectType<{
47
+ declare const frameworkConfigWithoutRootComponentValidator: import("arktype/internal/variants/object.ts").ObjectType<{
48
48
  codeDir?: string;
49
49
  copy?: string;
50
50
  exclude?: string;
@@ -53,7 +53,7 @@ declare const frameworkConfigWithoutRootComponentValidator: import("arktype/inte
53
53
  publicDir?: string;
54
54
  assetsDir?: string;
55
55
  styleImportBase?: string;
56
- siteBasePath?: string;
56
+ siteBasePath?: "" | `/${string}`;
57
57
  clientSideNav?: boolean;
58
58
  staticSite?: boolean;
59
59
  routesLocation?: [string, string];
@@ -87,7 +87,7 @@ declare const frameworkConfigWithoutRootComponentValidator: import("arktype/inte
87
87
  apiPath?: string;
88
88
  useRootComponent: false;
89
89
  }, {}>;
90
- export declare const frameworkConfigValidator: import("arktype/internal/methods/object.ts").ObjectType<{
90
+ export declare const frameworkConfigValidator: import("arktype/internal/variants/object.ts").ObjectType<{
91
91
  codeDir?: string;
92
92
  copy?: string;
93
93
  exclude?: string;
@@ -96,7 +96,7 @@ export declare const frameworkConfigValidator: import("arktype/internal/methods/
96
96
  publicDir?: string;
97
97
  assetsDir?: string;
98
98
  styleImportBase?: string;
99
- siteBasePath?: string;
99
+ siteBasePath?: "" | `/${string}`;
100
100
  clientSideNav?: boolean;
101
101
  staticSite?: boolean;
102
102
  routesLocation?: [string, string];
@@ -139,7 +139,7 @@ export declare const frameworkConfigValidator: import("arktype/internal/methods/
139
139
  publicDir?: string;
140
140
  assetsDir?: string;
141
141
  styleImportBase?: string;
142
- siteBasePath?: string;
142
+ siteBasePath?: "" | `/${string}`;
143
143
  clientSideNav?: boolean;
144
144
  staticSite?: boolean;
145
145
  routesLocation?: [string, string];
@@ -16,7 +16,8 @@ export * from './components/bindable/BindableTextarea.jsx';
16
16
  export * from './components/GoToComponent.jsx';
17
17
  export * from './components/Lazy.js';
18
18
  export * from './components/Link.jsx';
19
- export * from './components/RedirectComponent.js';
19
+ export * from './components/RouteRedirectComponent.jsx';
20
+ export * from './components/WebRedirectComponent.jsx';
20
21
  export * from './nbsp.js';
21
22
  export * from './browserStorage.js';
22
23
  export { createElement } from './createElement.js';
@@ -37,10 +38,12 @@ export { logAndReturn } from './logAndReturn.js';
37
38
  export * from './requests/index.js';
38
39
  export { registerGlobalData, type GlobalData, type GlobalDataFunction } from './routing/registerGlobalData.js';
39
40
  export * from './routing/MatchedRoute.jsx';
41
+ export * from './routing/RedirectCode.js';
40
42
  export * from './routing/Route.jsx';
41
43
  export * from './routing/Router.js';
42
44
  export * from './routing/RouteContentFunction.js';
43
45
  export * from './routing/RoutingRedirect.js';
46
+ export * from './routing/WebRedirect.js';
44
47
  export * from './when.js';
45
48
  export * from './serverRpc.js';
46
49
  export * from './settings.js';
@@ -61,7 +64,7 @@ export type { ReqRes, ReqResOrNull } from './ReqRes.js';
61
64
  export type { Params } from './routing/Params.js';
62
65
  export type { ParamsFromPath } from './routing/ParamsFromPath.js';
63
66
  export type { RouteType, Route } from './routing/RouteType.js';
64
- export { type RouteKey, type Path, StringIsPath, RouteKeyIsPath } from './routing/RouteTypes.js';
67
+ export { type RouteKey, type Path, type Path as RoutePath, StringIsPath, RouteKeyIsPath } from './routing/RouteTypes.js';
65
68
  export type { Routes, CustomRoutes } from './routing/Routes.js';
66
69
  export type { RouteParams } from './routing/RouteParams.type.js';
67
70
  export type { RouteData } from './routing/RouteData.js';
@@ -1 +1 @@
1
- {"version":3,"file":"indexInner.d.ts","sourceRoot":"","sources":["../src/indexInner.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAA;AACnC,OAAO,EACH,uBAAuB,EAAE,uBAAuB,IAAI,eAAe,EAAE,mBAAmB;AACxF,yBAAyB,EAAE,yBAAyB,IAAI,iBAAiB,EAAE,qBAAqB;AAEhG,gCAAgC,EAAE,gCAAgC,IAAI,wBAAwB,EAC9F,kCAAkC,EAAE,kCAAkC,IAAI,0BAA0B,GACvG,MAAM,kBAAkB,CAAA;AAEzB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,uBAAuB,CAAA;AACrC,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,8CAA8C,CAAA;AAC5D,cAAc,yCAAyC,CAAA;AACvD,cAAc,0CAA0C,C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EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACvD,YAAY,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,YAAY,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,KAAK,IAAI,IAAI,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxH,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3E,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,YAAY,EACR,0BAA0B,EAAE,0BAA0B,IAAI,SAAS,EACnE,gCAAgC,EAAE,gCAAgC,IAAI,eAAe,EACrF,cAAc,EACjB,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAG7C,mBAAmB,mBAAmB,CAAA"}
@@ -21,7 +21,8 @@ export * from "./components/bindable/BindableTextarea.js";
21
21
  export * from "./components/GoToComponent.js";
22
22
  export * from "./components/Lazy.js";
23
23
  export * from "./components/Link.js";
24
- export * from "./components/RedirectComponent.js";
24
+ export * from "./components/RouteRedirectComponent.js";
25
+ export * from "./components/WebRedirectComponent.js";
25
26
  export * from "./nbsp.js";
26
27
  export * from "./browserStorage.js";
27
28
  export { createElement } from "./createElement.js";
@@ -46,10 +47,12 @@ export { logAndReturn } from "./logAndReturn.js";
46
47
  export * from "./requests/index.js";
47
48
  export { registerGlobalData } from "./routing/registerGlobalData.js";
48
49
  export * from "./routing/MatchedRoute.js";
50
+ export * from "./routing/RedirectCode.js";
49
51
  export * from "./routing/Route.js";
50
52
  export * from "./routing/Router.js";
51
53
  export * from "./routing/RouteContentFunction.js";
52
54
  export * from "./routing/RoutingRedirect.js";
55
+ export * from "./routing/WebRedirect.js";
53
56
  export * from "./when.js";
54
57
  export * from "./serverRpc.js";
55
58
  export * from "./settings.js";
@@ -1 +1 @@
1
- {"version":3,"file":"makeFinalConfig.d.ts","sourceRoot":"","sources":["../src/makeFinalConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAGpF,wBAAgB,eAAe,CAAC,UAAU,EAAE,eAAe,GAAG,uBAAuB,CAWpF"}
1
+ {"version":3,"file":"makeFinalConfig.d.ts","sourceRoot":"","sources":["../src/makeFinalConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAGpF,wBAAgB,eAAe,CAAC,UAAU,EAAE,eAAe,GAAG,uBAAuB,CAYpF"}
@@ -4,7 +4,7 @@ export function makeFinalConfig(userConfig) {
4
4
  for (const key in userConfig) {
5
5
  if (Object.prototype.hasOwnProperty.call(userConfig, key)) {
6
6
  // github co-pilot suggestion, unsure if needed
7
- // @ts-ignore -- type errors because TS doesn't assess code as .a = .a but .any = .any
7
+ // eslint-disable-next-line no-type-assertion/no-type-assertion
8
8
  finalConfig[key] = userConfig[key];
9
9
  }
10
10
  }
@@ -0,0 +1,2 @@
1
+ export type RedirectCode = 301 | 302 | 303 | 307 | 308;
2
+ //# sourceMappingURL=RedirectCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RedirectCode.d.ts","sourceRoot":"","sources":["../../src/routing/RedirectCode.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  import { RoutingRedirect } from './RoutingRedirect.js';
2
- export type RouteDataFunction<Params extends object, DataType> = (params: Params, location: string) => Promise<DataType | RoutingRedirect>;
2
+ import { WebRedirect } from './WebRedirect.js';
3
+ export type RouteDataFunction<Params extends object, DataType> = (params: Params, location: string) => Promise<DataType | RoutingRedirect | WebRedirect>;
3
4
  //# sourceMappingURL=RouteDataFunction.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteDataFunction.type.d.ts","sourceRoot":"","sources":["../../src/routing/RouteDataFunction.type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,MAAM,EAAE,QAAQ,IACvD,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,QAAQ,GAAG,eAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"RouteDataFunction.type.d.ts","sourceRoot":"","sources":["../../src/routing/RouteDataFunction.type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,MAAM,EAAE,QAAQ,IACvD,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,QAAQ,GAAG,eAAe,GAAG,WAAW,CAAC,CAAA"}
@@ -1,10 +1,11 @@
1
1
  import type { RouteDataFunction } from './RouteDataFunction.type.js';
2
2
  import type { RoutingRedirect } from './RoutingRedirect.js';
3
+ import type { WebRedirect } from './WebRedirect.js';
3
4
  type RouteWithData = {
4
5
  data: RouteDataFunction<any, any>;
5
6
  };
6
7
  type RouteWithoutData = object;
7
8
  type RoutesBase = Record<string, RouteWithData | RouteWithoutData>;
8
- export type RouteDataReturnType<R extends RoutesBase, Path extends keyof R> = R[Path] extends RouteWithData ? Exclude<Awaited<ReturnType<R[Path]['data']>>, RoutingRedirect> : undefined;
9
+ export type RouteDataReturnType<R extends RoutesBase, Path extends keyof R> = R[Path] extends RouteWithData ? Exclude<Awaited<ReturnType<R[Path]['data']>>, RoutingRedirect | WebRedirect> : undefined;
9
10
  export {};
10
11
  //# sourceMappingURL=RouteDataReturnType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteDataReturnType.d.ts","sourceRoot":"","sources":["../../src/routing/RouteDataReturnType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CACpC,CAAA;AACD,KAAK,gBAAgB,GAAG,MAAM,CAAA;AAC9B,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAA;AAElE,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,SAAS,MAAM,CAAC,IACpE,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,GACzB,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,GAC9D,SAAS,CAAA"}
1
+ {"version":3,"file":"RouteDataReturnType.d.ts","sourceRoot":"","sources":["../../src/routing/RouteDataReturnType.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEnD,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CACpC,CAAA;AACD,KAAK,gBAAgB,GAAG,MAAM,CAAA;AAC9B,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAA;AAElE,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,UAAU,EAAE,IAAI,SAAS,MAAM,CAAC,IACpE,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,GACzB,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,GAAG,WAAW,CAAC,GAC5E,SAAS,CAAA"}
@@ -1,5 +1,10 @@
1
1
  import type { Path } from './RouteTypes.js';
2
2
  import type { RouteType } from './RouteType.js';
3
+ export type MinimumRoutes = {
4
+ default: RouteType<any, any>;
5
+ } | {
6
+ '404': RouteType<any, any>;
7
+ };
3
8
  export type Routes = {
4
9
  [key in Path]: RouteType<any, any>;
5
10
  } & ({
@@ -1 +1 @@
1
- {"version":3,"file":"Routes.d.ts","sourceRoot":"","sources":["../../src/routing/Routes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,MAAM,MAAM,GAAG;KAAG,GAAG,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;CAAE,GACzD,CACE;IAAE,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,GAChC;IAAE,KAAK,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CACnC,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI;KAAG,GAAG,IAAI,IAAI,GAAG,KAAK;CAAE,GACpF,CACE;IAAE,SAAS,EAAE,KAAK,CAAA;CAAE,GAClB;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CACrB,CAAA"}
1
+ {"version":3,"file":"Routes.d.ts","sourceRoot":"","sources":["../../src/routing/Routes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAY,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,MAAM,MAAM,aAAa,GACnB;IAAE,OAAO,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,GAChC;IAAE,KAAK,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAAA;AAEpC,MAAM,MAAM,MAAM,GAAG;KAAG,GAAG,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;CAAE,GACzD,CACE;IAAE,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,GAChC;IAAE,KAAK,EAAE,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CACnC,CAAA;AAED,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI;KAAG,GAAG,IAAI,IAAI,GAAG,KAAK;CAAE,GACpF,CACE;IAAE,SAAS,EAAE,KAAK,CAAA;CAAE,GAClB;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,CACrB,CAAA"}
@@ -1,5 +1,5 @@
1
+ import { RedirectCode } from './RedirectCode.js';
1
2
  import type { RouteKey } from './RouteTypes.js';
2
- export type RedirectCode = 301 | 302 | 303 | 307 | 308;
3
3
  export declare class RoutingRedirect {
4
4
  to: RouteKey;
5
5
  code: RedirectCode;
@@ -1 +1 @@
1
- {"version":3,"file":"RoutingRedirect.d.ts","sourceRoot":"","sources":["../../src/routing/RoutingRedirect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,MAAM,MAAM,YAAY,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAEtD,qBAAa,eAAe;IACxB,EAAE,EAAE,QAAQ,CAAA;IACZ,IAAI,EAAE,YAAY,CAAA;gBACN,EAAE,EAAE,QAAQ,EAAE,IAAI,GAAE,YAAkB;CAIrD"}
1
+ {"version":3,"file":"RoutingRedirect.d.ts","sourceRoot":"","sources":["../../src/routing/RoutingRedirect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,qBAAa,eAAe;IACxB,EAAE,EAAE,QAAQ,CAAA;IACZ,IAAI,EAAE,YAAY,CAAA;gBACN,EAAE,EAAE,QAAQ,EAAE,IAAI,GAAE,YAAkB;CAIrD"}
@@ -0,0 +1,8 @@
1
+ import { RedirectCode } from './RedirectCode.js';
2
+ export type WebUrl = `${string}://${string}` | string;
3
+ export declare class WebRedirect {
4
+ to: WebUrl;
5
+ code: RedirectCode;
6
+ constructor(to: WebUrl, code?: RedirectCode);
7
+ }
8
+ //# sourceMappingURL=WebRedirect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebRedirect.d.ts","sourceRoot":"","sources":["../../src/routing/WebRedirect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAGhD,MAAM,MAAM,MAAM,GAAG,GAAG,MAAM,MAAM,MAAM,EAAE,GAAG,MAAM,CAAA;AAErD,qBAAa,WAAW;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,YAAY,CAAA;gBACN,EAAE,EAAE,MAAM,EAAE,IAAI,GAAE,YAAkB;CAInD"}
@@ -0,0 +1,11 @@
1
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
4
+ export class WebRedirect {
5
+ constructor(to, code = 302) {
6
+ _defineProperty(this, "to", void 0);
7
+ _defineProperty(this, "code", void 0);
8
+ this.to = to;
9
+ this.code = code;
10
+ }
11
+ }
@@ -2,6 +2,8 @@ import type { ReqRes } from '../ReqRes.js';
2
2
  export interface GlobalData {
3
3
  }
4
4
  export type GlobalDataFunction = (reqRes: ReqRes) => Promise<GlobalData>;
5
- export declare let globalDataFunc: GlobalDataFunction | undefined;
5
+ export declare const globalDataFunc: {
6
+ value: GlobalDataFunction | undefined;
7
+ };
6
8
  export declare function registerGlobalData(func: GlobalDataFunction): void;
7
9
  //# sourceMappingURL=registerGlobalData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registerGlobalData.d.ts","sourceRoot":"","sources":["../../src/routing/registerGlobalData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,WAAW,UAAU;CAAG;AAE9B,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;AAExE,eAAO,IAAI,cAAc,EAAE,kBAAkB,GAAG,SAAqB,CAAA;AAErE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,QAE1D"}
1
+ {"version":3,"file":"registerGlobalData.d.ts","sourceRoot":"","sources":["../../src/routing/registerGlobalData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,MAAM,WAAW,UAAU;CAAG;AAE9B,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;AAExE,eAAO,MAAM,cAAc,EAAE;IAAE,KAAK,EAAE,kBAAkB,GAAG,SAAS,CAAA;CAAyB,CAAA;AAE7F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,kBAAkB,QAE1D"}
@@ -1,4 +1,6 @@
1
- export let globalDataFunc = undefined;
1
+ export const globalDataFunc = {
2
+ value: undefined
3
+ };
2
4
  export function registerGlobalData(func) {
3
- globalDataFunc = func;
5
+ globalDataFunc.value = func;
4
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tungsten",
3
- "version": "0.1.70",
3
+ "version": "0.1.72",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,85 +22,89 @@
22
22
  "author": "",
23
23
  "license": "UNLICENSED",
24
24
  "dependencies": {
25
- "@babel/cli": "^7.27.2",
26
- "@babel/core": "^7.27.1",
27
- "@babel/parser": "^7.27.2",
28
- "@babel/plugin-syntax-import-assertions": "^7.27.1",
29
- "@babel/plugin-transform-class-properties": "^7.27.1",
30
- "@babel/preset-react": "^7.27.1",
25
+ "@babel/cli": "^7.28.6",
26
+ "@babel/core": "^7.29.0",
27
+ "@babel/parser": "^7.29.2",
28
+ "@babel/plugin-syntax-import-assertions": "^7.28.6",
29
+ "@babel/plugin-transform-class-properties": "^7.28.6",
30
+ "@babel/preset-react": "^7.28.5",
31
+ "@hono/node-server": "^1.19.11",
31
32
  "@rollup/plugin-babel": "^5.3.1",
32
33
  "@rollup/plugin-commonjs": "^22.0.2",
33
34
  "@rollup/plugin-json": "^6.1.0",
34
35
  "@rollup/plugin-node-resolve": "^14.1.0",
35
- "arktype": "^2.1.20",
36
+ "arktype": "^2.2.0",
36
37
  "axios": "^0.27.2",
37
38
  "babel-loader": "^8.4.1",
38
39
  "babel-plugin-css-to-js": "^0.0.4",
39
40
  "babel-plugin-sxy-module-resolver": "^4.1.9",
40
41
  "babel-plugin-sxy-transform-cjs-to-esm": "^0.2.6",
41
42
  "bcryptjs": "^2.4.3",
42
- "chalk": "^5.4.1",
43
+ "chalk": "^5.6.2",
43
44
  "chalk-extensions": "^2.0.24",
44
45
  "chokidar": "^3.6.0",
45
46
  "cjs-module-lexer": "^1.4.3",
46
47
  "cjstoesm": "^2.1.2",
47
48
  "compression-webpack-plugin": "^10.0.0",
49
+ "cookie-parser": "^1.4.7",
48
50
  "cross-env": "^7.0.3",
49
- "decamelize": "^6.0.0",
50
- "dotenv": "^16.5.0",
51
- "express": "^4.21.2",
51
+ "decamelize": "^6.0.1",
52
+ "dotenv": "^16.6.1",
53
+ "express": "^4.22.1",
52
54
  "find-package-json": "^1.2.0",
53
55
  "fs-extra": "^10.1.0",
54
56
  "globby": "^13.2.2",
55
- "html-webpack-plugin": "^5.6.3",
57
+ "hono": "^4.12.8",
58
+ "html-webpack-plugin": "^5.6.6",
56
59
  "import-meta-resolve": "^2.2.2",
57
60
  "ini": "^4.1.3",
58
61
  "install": "^0.13.0",
59
62
  "lodash.clonedeep": "^4.5.0",
60
- "mini-css-extract-plugin": "^2.9.2",
63
+ "mini-css-extract-plugin": "^2.10.1",
61
64
  "node-fetch": "^3.3.2",
62
- "npm": "^11.4.1",
65
+ "npm": "^11.12.0",
63
66
  "npm-run-all": "^4.1.5",
64
67
  "open": "^8.4.2",
65
68
  "path-to-regexp": "^6.3.0",
66
- "postcss": "^8.5.3",
69
+ "postcss": "^8.5.8",
67
70
  "precinct": "^12.2.0",
68
- "react-router": "^6.30.1",
71
+ "react-router": "^6.30.3",
69
72
  "redaxios": "^0.5.1",
70
73
  "require-resolve-hook": "^1.1.0",
71
74
  "rmfr": "^2.0.0",
72
- "rollup": "^2.79.2",
75
+ "rollup": "^2.80.0",
73
76
  "rollup-plugin-gzip": "^3.1.2",
74
77
  "rollup-plugin-terser": "^7.0.2",
75
- "sass": "^1.89.0",
78
+ "sass": "^1.98.0",
76
79
  "serialize-javascript": "^6.0.2",
77
80
  "slash": "^4.0.0",
78
81
  "sxy-dependency-tree": "^8.1.11",
79
82
  "sxy-filing-cabinet": "^3.4.2",
80
- "sxy-lib": "^3.0.3",
83
+ "sxy-lib": "^3.0.4",
81
84
  "sxy-lib-object-copy": "^2.0.5",
82
85
  "sxy-loader": "^3.1.0",
83
86
  "sxy-package-investigator": "^1.0.0",
84
- "terser-webpack-plugin": "^5.3.14",
87
+ "terser-webpack-plugin": "^5.4.0",
85
88
  "util": "^0.12.5",
86
- "zod": "^3.25.20"
89
+ "zod": "^4.3.6"
87
90
  },
88
91
  "devDependencies": {
89
- "@babel/generator": "^7.27.1",
90
- "@babel/types": "^7.27.1",
92
+ "@babel/generator": "^7.29.1",
93
+ "@babel/types": "^7.29.0",
91
94
  "@types/babel-types": "^7.0.16",
92
95
  "@types/babel__core": "^7.20.5",
93
96
  "@types/babel__generator": "^7.27.0",
94
97
  "@types/bcrypt": "^5.0.2",
95
98
  "@types/bcryptjs": "^2.4.6",
96
99
  "@types/chai": "^4.3.20",
97
- "@types/express": "^4.17.22",
98
- "@types/find-package-json": "^1.2.6",
100
+ "@types/cookie-parser": "^1.4.10",
101
+ "@types/express": "^4.17.25",
102
+ "@types/find-package-json": "^1.2.7",
99
103
  "@types/fs-extra": "^11.0.4",
100
104
  "@types/ini": "^1.3.34",
101
105
  "@types/lodash.clonedeep": "^4.5.9",
102
- "@types/node": "^20.17.50",
103
- "@types/prop-types": "^15.7.14",
106
+ "@types/node": "^20.19.37",
107
+ "@types/prop-types": "^15.7.15",
104
108
  "@types/rmfr": "^2.0.5",
105
109
  "@types/serialize-javascript": "^5.0.4",
106
110
  "@typescript-eslint/eslint-plugin": "^5.62.0",
@@ -110,10 +114,10 @@
110
114
  "babel-plugin-transform-import-extension": "^1.0.3",
111
115
  "chai": "^4.5.0",
112
116
  "chai-subset": "^1.6.0",
113
- "csstype": "^3.1.3",
117
+ "csstype": "^3.2.3",
114
118
  "eslint": "^8.57.1",
115
119
  "eslint-import-resolver-typescript": "^2.7.1",
116
- "eslint-plugin-import": "^2.31.0",
120
+ "eslint-plugin-import": "^2.32.0",
117
121
  "eslint-plugin-no-type-assertion": "^1.3.0",
118
122
  "progress-webpack-plugin": "^1.0.16",
119
123
  "prop-types": "^15.8.1",
@@ -123,7 +127,7 @@
123
127
  "supertest": "^6.3.4",
124
128
  "sxy-test-runner": "^1.3.8",
125
129
  "sxy-types": "^1.0.23",
126
- "typescript": "^5.8.3",
130
+ "typescript": "^5.9.3",
127
131
  "webpack-bundle-analyzer": "^4.10.2",
128
132
  "webpack-cli": "^4.10.0",
129
133
  "webpack-stats-plugin": "^1.1.3"
@@ -1,6 +1,8 @@
1
1
 
2
2
  export { Class, Prettify, Expand, ValueOf, TupleOfLength, ArrayMinLength, UnionToIntersection } from 'sxy-types'
3
3
 
4
+ export type True<T extends true> = true
5
+ export type Extends<A extends B, B> = true
4
6
  /*
5
7
  export type Class = { new(...args: unknown[]): object }
6
8
 
@@ -1,12 +0,0 @@
1
- import { TungstenSimpleComponent } from '../Components.jsx';
2
- import type { Path } from '../routing/RouteTypes.js';
3
- import type { RedirectCode } from '../routing/RoutingRedirect.js';
4
- export type RedirectComponentProps = {
5
- to: Path;
6
- code?: RedirectCode;
7
- };
8
- export declare class RedirectComponent extends TungstenSimpleComponent<RedirectComponentProps> {
9
- static __tungstenRedirect: boolean;
10
- content: () => "This should redirect - if you see this, redirection didn't work" | null;
11
- }
12
- //# sourceMappingURL=RedirectComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RedirectComponent.d.ts","sourceRoot":"","sources":["../../src/components/RedirectComponent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,MAAM,MAAM,sBAAsB,GAAG;IACjC,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;CACtB,CAAA;AACD,qBAAa,iBAAkB,SAAQ,uBAAuB,CAAC,sBAAsB,CAAC;IAClF,MAAM,CAAC,kBAAkB,UAAO;IAIhC,OAAO,iFAEG;CACb"}