@owlmeans/api-config-server 0.1.18-rc.13 → 0.1.18-rc.15

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/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @owlmeans/api-config-server
2
2
 
3
- Server-side module that serves safe configuration values at `GET /assets/config.json`.
3
+ Server-side entrypoint that serves safe configuration values at `GET /assets/config.json`.
4
4
 
5
5
  ## Overview
6
6
 
7
7
  - Registers the `API_CONFIG` handler that returns non-sensitive config fields to clients
8
8
  - Used alongside `@owlmeans/api-config-client` to push runtime config from server to browser
9
- - Include `modules` in your server module registration
9
+ - Include `entrypoints` in your server entrypoint registration
10
10
 
11
11
  ## Installation
12
12
 
@@ -17,21 +17,21 @@ bun add @owlmeans/api-config-server
17
17
  ## Usage
18
18
 
19
19
  ```typescript
20
- import { modules as apiConfigModules } from '@owlmeans/api-config-server'
20
+ import { entrypoints as apiConfigEntrypoints } from '@owlmeans/api-config-server'
21
21
 
22
22
  // In your server context setup
23
- context.registerModules([...appModules, ...apiConfigModules])
23
+ context.registerEntrypoints([...appEntrypoints, ...apiConfigEntrypoints])
24
24
  ```
25
25
 
26
26
  ## API
27
27
 
28
- ### `modules`
28
+ ### `entrypoints`
29
29
 
30
30
  Array of server-side route handlers for the config advertisement endpoint (`GET /assets/config.json`).
31
31
 
32
32
  ## Related Packages
33
33
 
34
- - [`@owlmeans/api-config`](../api-config) — shared types and module alias
34
+ - [`@owlmeans/api-config`](../api-config) — shared types and entrypoint alias
35
35
  - [`@owlmeans/api-config-client`](../api-config-client) — client that fetches this endpoint
36
36
 
37
37
  <!-- owlmeans:agent-guidance:start -->
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/api-config-server",
4
- "version": "0.1.18-rc.12",
5
- "generatedAt": "2026-08-27T16:32:18.469Z",
4
+ "version": "0.1.18-rc.15",
5
+ "generatedAt": "2026-09-01T16:28:56.986Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/api-config-server
9
9
 
10
10
  **Layer:** Server
11
- **Install:** `"@owlmeans/api-config-server": "^0.1.18-rc.12"` in `dependencies`
11
+ **Install:** `"@owlmeans/api-config-server": "^0.1.18-rc.15"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
@@ -0,0 +1,3 @@
1
+ import type { ServerEntrypoint } from '@owlmeans/server-entrypoint';
2
+ export declare const entrypoints: ServerEntrypoint<unknown>[];
3
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAOnE,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAElD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { elevate } from '@owlmeans/server-entrypoint';
2
+ import { entrypoints as list, API_CONFIG } from '@owlmeans/api-config';
3
+ import { config } from './actions/index.js';
4
+ elevate(list, API_CONFIG, config.advertise);
5
+ export const entrypoints = [
6
+ ...list.filter((module) => module.alias === API_CONFIG)
7
+ ];
8
+ //# sourceMappingURL=entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,WAAW,IAAI,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAgC;IACtD,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAuC,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,UAAU,CAAC;CAC7F,CAAA"}
package/build/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './modules.js';
1
+ export * from './entrypoints.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAA"}
package/build/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './modules.js';
1
+ export * from './entrypoints.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/api-config-server",
3
- "version": "0.1.18-rc.13",
3
+ "version": "0.1.18-rc.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,10 +21,10 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/api-config": "^0.1.18-rc.8",
25
- "@owlmeans/server-api": "^0.1.18-rc.13",
26
- "@owlmeans/server-context": "^0.1.18-rc.8",
27
- "@owlmeans/server-entrypoint": "^0.1.18-rc.8"
24
+ "@owlmeans/api-config": "^0.1.18-rc.10",
25
+ "@owlmeans/server-api": "^0.1.18-rc.15",
26
+ "@owlmeans/server-context": "^0.1.18-rc.10",
27
+ "@owlmeans/server-entrypoint": "^0.1.18-rc.9"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@owlmeans/dep-config": "workspace:*",
@@ -1,11 +1,11 @@
1
1
 
2
2
  import type { ServerEntrypoint } from '@owlmeans/server-entrypoint'
3
3
  import { elevate } from '@owlmeans/server-entrypoint'
4
- import { modules as list, API_CONFIG } from '@owlmeans/api-config'
4
+ import { entrypoints as list, API_CONFIG } from '@owlmeans/api-config'
5
5
  import { config } from './actions/index.js'
6
6
 
7
7
  elevate(list, API_CONFIG, config.advertise)
8
8
 
9
- export const modules: ServerEntrypoint<unknown>[] = [
10
- ...list.filter((module): module is ServerEntrypoint<unknown> => module.getAlias() === API_CONFIG)
9
+ export const entrypoints: ServerEntrypoint<unknown>[] = [
10
+ ...list.filter((module): module is ServerEntrypoint<unknown> => module.alias === API_CONFIG)
11
11
  ]
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
 
2
- export * from './modules.js'
2
+ export * from './entrypoints.js'
package/build/.gitkeep DELETED
File without changes
@@ -1,3 +0,0 @@
1
- import type { ServerEntrypoint } from '@owlmeans/server-entrypoint';
2
- export declare const modules: ServerEntrypoint<unknown>[];
3
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAOnE,eAAO,MAAM,OAAO,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAE9C,CAAA"}
package/build/modules.js DELETED
@@ -1,8 +0,0 @@
1
- import { elevate } from '@owlmeans/server-entrypoint';
2
- import { modules as list, API_CONFIG } from '@owlmeans/api-config';
3
- import { config } from './actions/index.js';
4
- elevate(list, API_CONFIG, config.advertise);
5
- export const modules = [
6
- ...list.filter((module) => module.getAlias() === API_CONFIG)
7
- ];
8
- //# sourceMappingURL=modules.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;AAE3C,MAAM,CAAC,MAAM,OAAO,GAAgC;IAClD,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAuC,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,UAAU,CAAC;CAClG,CAAA"}