Skip to content

Releases: nxara-hub/olio

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 02 Nov 10:36

Behaviour changes

  • olio: *.* middleware now also runs on plain fields, as in graphql-modules. With auth on *.*, a public login needs its result marked too: type Session @bypass(keys: "auth"). A logger on *.* runs on every plain field, so filter by depth with if (info.path.prev) return next().

Fixes

  • olio: *.* middleware covers fields with no resolver

Full diff: v0.1.5...v0.1.6

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 02 Nov 10:01

Security

  • olio: a field named constructor could skip module-level auth and expose ctx to 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 @bypass checks across the process. bypass is 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

Choose a tag to compare

@github-actions github-actions released this 02 Nov 08:10

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 second next().
  • 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

Choose a tag to compare

@github-actions github-actions released this 01 Nov 19:39

Fixes

  • schema: count directive usages, not types, when checking passes make progress
  • schema: report @copy and @implements used 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

Choose a tag to compare

@github-actions github-actions released this 01 Nov 10:05

Fixes

  • schema: schema directives used only on fields, arguments or enum values now run
  • http: nodeHandler takes a body a framework already parsed, from req.body or its third argument

The docs site also landed here.

Full diff: v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 30 Oct 22:56

No feat or fix commits in this release.

Full diff: v0.1.0...v0.1.1

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 22:12

Features

  • client: graphql-ws and graphql-sse are optional peer dependencies

Full diff: v0.1.0-rc.1...v0.1.0

v0.1.0-rc.1

v0.1.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Oct 22:05