Releases: jderstd/javascript
Releases · jderstd/javascript
0.5.0
Breaking Changes
errorsfield of JSON response create options useJsonResponseErrorInputtype nowpathfield inJsonResponseErroris a array instead of an optional array nowerrorsfield inJsonResponseis a array instead of an optional array now
What's New
- Export
JsonResponseErrorInput
What's Changed
- Avoid omit null value and empty array
0.4.0
Breaking Changes
- Rename package from
@jderjs/coreto@jderstd/core
What's Changed
- Update documentation
0.3.0
Breaking Changes
- Support new standard
Migrating from 0.2.0 to 0.3.0
import {
createJsonResponse,
} from "@jderjs/core";
const route = (): Response => {
return createJsonResponse({
- error: {
- code: "parse",
- field: "title",
- message: "Invalid title",
- },
+ errors: [
+ {
+ code: "parse",
+ path: ["json", "title"],
+ message: "Invalid title",
+ }
+ ],
});
}0.2.0
What's Changed
- Allow to skip
success: falsefor failure response - Internal API changes
0.1.3
What's Changed
- Update types
0.1.2
What's Changed
- Optimization
- Update documentation
0.1.1
What's Changed
- Update documentation
0.1.0
First release