@nxara/olio-core 0.1.1 → 0.1.3
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The contracts the Nxara packages share, so none of them has to depend on `@nxara/olio`. Apps don't import it: `@nxara/olio` re-exports the types, and `@nxara/olio-tools` the loaders.
|
|
4
4
|
|
|
5
|
-
- **`Olio`**: the registration interface. Apps still augment it through olio (`declare module "@nxara/olio" { interface Olio { ... } }`), which reaches it here
|
|
5
|
+
- **`Olio`**: the registration interface. Apps still augment it through olio (`declare module "@nxara/olio" { interface Olio { ... } }`), which reaches it here. `@nxara/olio-http` reads the registered `ctx` as `Context`.
|
|
6
6
|
- **Module shapes**: `OlioModule`, `OlioFeature`, `ResolverMap`, `StoredMiddleware` (olio's `MiddlewareMap` is the typed view), and the `LoadedResolvers` / `LoadedEnums` brands that `@nxara/olio-tools` returns.
|
|
7
7
|
- **`TypeSource`, `Pattern`**.
|
|
8
|
-
- **`@nxara/olio-core/files`** (Node only, so `node:fs` stays out of olio's imports): `matchFiles(patterns)` (sorted
|
|
8
|
+
- **`@nxara/olio-core/files`** (Node only, so `node:fs` stays out of olio's imports): `matchFiles(patterns)` (sorted, and a pattern matching nothing throws) and `loadGraphQLFile(file)` (`.graphql` / `.gql`, or a `.ts` / `.js` default export of GraphQL source or a `DocumentNode`, with errors that carry `file:line:col`). `@nxara/olio-tools` and `@nxara/olio-codegen` load SDL and operations through it, so they read the same files the same way.
|