Skip to content

Releases: jderstd/javascript

0.5.0

25 Dec 11:21

Choose a tag to compare

Breaking Changes

  • errors field of JSON response create options use JsonResponseErrorInput type now
  • path field in JsonResponseError is a array instead of an optional array now
  • errors field in JsonResponse is 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

20 Sep 04:29

Choose a tag to compare

Breaking Changes

  • Rename package from @jderjs/core to @jderstd/core

What's Changed

  • Update documentation

0.3.0

13 Aug 13:28

Choose a tag to compare

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

06 Aug 06:52

Choose a tag to compare

What's Changed

  • Allow to skip success: false for failure response
  • Internal API changes

0.1.3

12 Jun 11:46

Choose a tag to compare

What's Changed

  • Update types

0.1.2

26 May 05:21

Choose a tag to compare

What's Changed

  • Optimization
  • Update documentation

0.1.1

20 May 03:28

Choose a tag to compare

What's Changed

  • Update documentation

0.1.0

18 May 12:30

Choose a tag to compare

First release