Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/errors-boundary-parsing.md

This file was deleted.

35 changes: 24 additions & 11 deletions .changeset/ledger.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,59 @@
'@dphonys/nuxt-handler-errors@0.1.0':
"@dphonys/nuxt-handler-errors@0.1.0":
dir: packages/nuxt-handler-errors
intents:
- four-adults-trade
'@dphonys/nuxt-handler-errors@0.2.0':
"@dphonys/nuxt-handler-errors@0.2.0":
dir: packages/nuxt-handler-errors
intents:
- shaggy-steaks-stand
'@dphonys/nuxt-handler-errors@0.3.0':
"@dphonys/nuxt-handler-errors@0.3.0":
dir: packages/nuxt-handler-errors
intents:
- server-helpers-auto-import
'@dphonys/nuxt-handler-errors@0.3.1':
"@dphonys/nuxt-handler-errors@0.3.1":
dir: packages/nuxt-handler-errors
intents:
- errors-declares-side-effect-free
'@dphonys/nuxt-handler-errors@0.4.0':
"@dphonys/nuxt-handler-errors@0.4.0":
dir: packages/nuxt-handler-errors
intents:
- every-peaches-dream
'@dphonys/nuxt-handler-errors@0.5.0':
"@dphonys/nuxt-handler-errors@0.5.0":
dir: packages/nuxt-handler-errors
intents:
- local-error-factories
- nuxt-declared-as-peer
'@dphonys/nuxt-handler-validation@0.1.0':
"@dphonys/nuxt-handler-errors@0.6.0":
dir: packages/nuxt-handler-errors
intents:
- errors-boundary-parsing
"@dphonys/nuxt-handler-validation@0.1.0":
dir: packages/nuxt-handler-validation
intents:
- gold-doors-fly
'@dphonys/nuxt-handler-validation@0.1.1':
"@dphonys/nuxt-handler-validation@0.1.1":
dir: packages/nuxt-handler-validation
intents:
- validation-declares-side-effect-free
'@dphonys/nuxt-handler-validation@0.2.0':
"@dphonys/nuxt-handler-validation@0.2.0":
dir: packages/nuxt-handler-validation
intents:
- validation-internals-entries
'@dphonys/nuxt-handler-validation@0.2.1':
"@dphonys/nuxt-handler-validation@0.2.1":
dir: packages/nuxt-handler-validation
intents:
- nuxt-declared-as-peer
'@dphonys/nuxt-typed-handler@0.1.0':
"@dphonys/nuxt-handler-validation@0.3.0":
dir: packages/nuxt-handler-validation
intents:
- validation-boundary-parsing
"@dphonys/nuxt-typed-handler@0.1.0":
dir: packages/nuxt-typed-handler
intents:
- dull-pens-love
- local-error-factories
"@dphonys/nuxt-typed-handler@0.2.0":
dir: packages/nuxt-typed-handler
intents:
- errors-boundary-parsing
- validation-boundary-parsing
6 changes: 0 additions & 6 deletions .changeset/validation-boundary-parsing.md

This file was deleted.

10 changes: 8 additions & 2 deletions oxfmt.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { defineConfig } from 'oxfmt'

export default defineConfig({
// Vendored plugin keeps upstream formatting so it stays diffable.
ignorePatterns: ['tools/oxlint/anti-slop/**'],
ignorePatterns: [
// Vendored plugin keeps upstream formatting so it stays diffable.
'tools/oxlint/anti-slop/**',
// `pnpm version -r` rewrites the ledger on every release and quotes its
// keys its own way. Formatting it here only makes the release gate fail
// on generated output, so the generator keeps ownership of the file.
'.changeset/ledger.yaml',
],
semi: false,
singleQuote: true,
tabWidth: 2,
Expand Down
6 changes: 6 additions & 0 deletions packages/nuxt-handler-errors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dphonys/nuxt-handler-errors

## 0.6.0

### Minor Changes

- Error recognition takes an `Error`. `recognizeKnownError` and the degraded `matchError` overload accept a value already narrowed with `instanceof Error` or Nuxt's `isNuxtError`, instead of `unknown`; a bare `catch` value is narrowed at the call site first. `KnownErrorCarrier<E>` is now `NuxtError<KnownErrorBody<E>>`. The known-error wire marker is parsed with a schema, so `zod` becomes a runtime dependency of the errors module. The umbrella module re-exports the narrowed surface.

## 0.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt-handler-errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dphonys/nuxt-handler-errors",
"version": "0.5.0",
"version": "0.6.0",
"description": "Declare a Nitro handler’s expected failures once and infer them at every call site from the route path.",
"keywords": [
"nuxt",
Expand Down
6 changes: 6 additions & 0 deletions packages/nuxt-handler-validation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dphonys/nuxt-handler-validation

## 0.3.0

### Minor Changes

- `recognizeValidationError` takes an `Error` instead of `unknown`; narrow a bare `catch` value with `instanceof Error` or Nuxt's `isNuxtError` first. Request sources, issue paths and the validation marker are parsed with a schema, so `zod` becomes a runtime dependency of the validation module. The umbrella module re-exports the narrowed surface.

## 0.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt-handler-validation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dphonys/nuxt-handler-validation",
"version": "0.2.1",
"version": "0.3.0",
"description": "Declare a Nitro handler's request schemas once and receive the validated, fully-typed values in the handler's second parameter.",
"keywords": [
"nuxt",
Expand Down
14 changes: 14 additions & 0 deletions packages/nuxt-typed-handler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @dphonys/nuxt-typed-handler

## 0.2.0

### Minor Changes

- Error recognition takes an `Error`. `recognizeKnownError` and the degraded `matchError` overload accept a value already narrowed with `instanceof Error` or Nuxt's `isNuxtError`, instead of `unknown`; a bare `catch` value is narrowed at the call site first. `KnownErrorCarrier<E>` is now `NuxtError<KnownErrorBody<E>>`. The known-error wire marker is parsed with a schema, so `zod` becomes a runtime dependency of the errors module. The umbrella module re-exports the narrowed surface.

- `recognizeValidationError` takes an `Error` instead of `unknown`; narrow a bare `catch` value with `instanceof Error` or Nuxt's `isNuxtError` first. Request sources, issue paths and the validation marker are parsed with a schema, so `zod` becomes a runtime dependency of the validation module. The umbrella module re-exports the narrowed surface.

### Patch Changes

- Updated dependencies:
- @dphonys/nuxt-handler-errors@0.6.0
- @dphonys/nuxt-handler-validation@0.3.0

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt-typed-handler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dphonys/nuxt-typed-handler",
"version": "0.1.0",
"version": "0.2.0",
"description": "Declare a Nitro handler's request schemas and expected failures once, and get both typed at every call site.",
"keywords": [
"nuxt",
Expand Down
Loading