Skip to content

Latest commit

 

History

History
113 lines (69 loc) · 3.69 KB

CHANGELOG.md

File metadata and controls

113 lines (69 loc) · 3.69 KB

Changelog

2.1.0 - 2024-01-06

Added

  • add optional response props type to render method: response.inertia().render<ResponseProps = Record<string, unknown>>(…)
    • this is useful if you want to provide a contract between frontend and backend props

Updates

  • remove JSDoc blocks in comments because they are a duplicate of the TypeScript types

2.0.1 - 2023-12-03

Fixes

  • fix SSR file import and render function resolution: we previously needed a default export. Now an exported render function will resolve correctly

2.0.0 - 2023-12-03

Updated

  • bump dependencies

Breaking Changes

  • require Node.js v20
  • this package migrated to ESM
  • renamed InertiaOptions to InertiaConfig
    • renaming the Inertia config file to InertiaConfig aligns with the Supercharge config naming where all exported config contracts have the Config suffix. And the config/inertia.ts file location aligns with the InertiaConfig naming, too.

1.2.2 - 2022-09-26

Updated

  • use ^ for Supercharge framework dependency versions to avoid release issues because of mismatching versions
    • for example: this package depends on @supercharge/contracts for a given version. Previously, we used @supercharge/contracts: ~<version> to identify the dependency version. Now we’re using @supercharge/contracts: ^<version> to make this package compatible with every minor <release> of @supercharge/contracts

1.2.1 - 2022-09-25

Updated

  • bump dependencies

1.2.0 - 2022-09-19

Added

  • register partial views, request and response decorations in the service provider’s boot method (instead of register) which makes sure the container bindings are available

Updated

  • bump dependencies

1.1.0 - 2022-08-25

Added

  • add share method to middleware: allowing users to share props in a single place
  • add response.inertia().location(<url>) method: redirect requests to the given internal or external url

Updated

  • update visibility to protected for internal response.inertia().filterPartialData() method

1.0.0 - 2022-08-22

Added

  • request.inertia().share(data) method: share data along the request lifecycle and add the shared data to the Inertia response
  • request.inertia().sharedData() method: retrieve the shared data
  • add SharesData class
  • make InertiaRequest and InertiaResponse instances extend the SharesData class allowing you to share data from request.inertia() and response.inertia()

Updated

  • bump dependencies

0.4.0 - 2022-08-19

Added

  • request.inertia() method: returns a request-related Inertia instance resolving Inertia data from the request
  • support Inertia partial reloads
  • support Inertia lazy data evaluation

Updated

  • bump dependencies
  • add dedicated InertiaRequest and InertiaResponse classes
  • the generic Inertia class exposes utility functions only

Breaking Changes

  • removed request.inertiaVersion() method in favor of request.inertia().version()

0.3.1 - 2022-08-17

Updated

  • bump dependencies

0.3.0 - 2022-08-16

Added

  • bump dependencies
  • add SSR support

0.2.0 - 2022-08-11

Updated

  • bump dependencies
  • update to latest Application contract

0.1.0 - 2022-07-29

Added

  • 0.1.0 release 🚀 🎉