vite-plugin-simple-json-server

Provide a file-based mock API for Vite in dev mode

MIT License

Downloads
1.8K
Stars
7
Committers
5

Bot releases are visible (Hide)

vite-plugin-simple-json-server - [email protected] Latest Release

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 8edc50c: chore: deps update
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 9482527: Added the engines entry "node": ">=15.7.0" to the package.json.
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • a8dbd42: ## Breaking

    count query parameter is replaced by HEAD method.

    Features

    OpenAPI 3.0 (Swagger UI) support

vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 3ff8211: Feature: new option - delay to responses
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 5a99b02: Feature: support ne, lt, gt, lte, gte and like operators
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 7eaaef6: Feature: handler for OPTIONS method
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • a625763: Feature: sort & filter on deep properties. Use . as separator.
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 0c7c8ca: fix: if limit >= totalCount then 'Link' should be empty
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • a45cdc0: ## Breaking

    • POST, PUT and PATCH for non-array JSON
    • mockRootDir option is changed to mockDir

    Features

    • Access-Control-Expose-Headers
    • staticDir option added
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 2d0df2a: delete 204 -> 200
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • aa0e90c: Content-Type header is removed for 204
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • ce91a1a: refactor logging
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • c2e7b61: refactor: 204 status handling
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • 1869675: ## Breaking

    CRUD (POST, PUT, PATCH, DELETE) operations for array-like JSON.

    Feature

    • X-Total-Count header in pagination
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • b220dc4: ## Breaking

    • Only 'GET' for json.
    • Automatic route: /json-file/count is changed to /json-file?count.
    • Sort: the order parameter name is removed. Use - before parameter for the descending sort order.

    Features

    • Automatic route /json-file/:id for array-like json with id property.
    • Sorting by more more than one property: /json-file?sort=name,-price.
    • Paging: prev, next, first & last in the response header.

    Fixes

    • filter by multiply values of the same property: /json-file?id=3&id=5.

    Planned

    POST, PUT & DELETE for array-like json

vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 74c478e: - By default the plugin is invoked only in serve mode.
    • It also works in preview mode.
    • Added disable option.
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • 80ccdf7: - better error handling
    • refactor core code
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • a225512: more supported types of static files
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Minor Changes

  • fd4853b: "page" query param changed to "offset"
vite-plugin-simple-json-server - [email protected]

Published by github-actions[bot] about 2 years ago

Patch Changes

  • d5ba4ec: refactor: json-handler messages