Repository navigation
Releases: nxara-hub/olio
Releases · nxara-hub/olio
Release list
v0.1.6
Behaviour changes
- olio:
*.*middleware now also runs on plain fields, as in graphql-modules. With auth on*.*, a publicloginneeds its result marked too:type Session @bypass(keys: "auth"). A logger on*.*runs on every plain field, so filter by depth withif (info.path.prev) return next().
Fixes
- olio:
*.*middleware covers fields with no resolver
Full diff: v0.1.5...v0.1.6
v0.1.5
Security
- olio: a field named
constructorcould skip module-level auth and exposectxto an anonymous client, when an app-level middleware map existed for the same type. Update if your schema has such a field. - olio: one
bypass.add()in a middleware could turn off@bypasschecks across the process.bypassis now read-only.
Behaviour changes
- olio:
Type: { "*": [...] }middleware now also runs on that owner's fields with no resolver, so middleware there can run more often and may now refuse fields it used to skip.
Fixes
- olio: a field named constructor no longer runs Object as middleware
- olio: a type's "*" middleware covers its fields with no resolver
- olio: middleware can't change a field's bypass keys
Features
- tools: loaders(root), so modules don't repeat new URL
Full diff: v0.1.4...v0.1.5
v0.1.4
Behaviour changes
- olio: calling
next()more than once no longer runs the resolver again. Later calls get the first result or error and olio warns once per field, so retry middleware can't work through a secondnext(). - olio: the ownership error now reads
'User.name' is not declared by posts module, at compile time and at startup, and no longer names the owner. Fields owned elsewhere also leave editors' suggestions.
Fixes
- olio: a second next() no longer runs the resolver again, and warns
Features
- http: introspection and suggestions options to hide the schema
- olio: hide other owners' fields from suggestions, with a simple error
Full diff: v0.1.3...v0.1.4
v0.1.3
Fixes
- schema: count directive usages, not types, when checking passes make progress
- schema: report
@copyand@implementsused inside a type, with its location - schema: keep an extension's own fields, so a duplicate is reported instead of dropped
- schema: copy once when several usages on a type share a source
Full diff: v0.1.2...v0.1.3
v0.1.2
Fixes
- schema: schema directives used only on fields, arguments or enum values now run
- http:
nodeHandlertakes a body a framework already parsed, fromreq.bodyor its third argument
The docs site also landed here.
Full diff: v0.1.1...v0.1.2
v0.1.1
No feat or fix commits in this release.
Full diff: v0.1.0...v0.1.1
v0.1.0
Features
- client: graphql-ws and graphql-sse are optional peer dependencies
Full diff: v0.1.0-rc.1...v0.1.0