Skip to content

Commit

Permalink
help people migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 9, 2022
1 parent ba36953 commit 68781d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/kit/src/exports/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ export function json(data, init) {
export function fail(status, data) {
return new ActionFailure(status, data);
}

// TODO remove for 1.0
export function invalid() {
throw new Error('invalid(...) is now fail(...)');
}

0 comments on commit 68781d9

Please sign in to comment.