2.1.0 - 2024-01-06
- 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
- remove JSDoc blocks in comments because they are a duplicate of the TypeScript types
2.0.1 - 2023-12-03
- 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
- bump dependencies
- require Node.js v20
- this package migrated to ESM
- renamed
InertiaOptions
toInertiaConfig
- renaming the Inertia config file to
InertiaConfig
aligns with the Supercharge config naming where all exported config contracts have theConfig
suffix. And theconfig/inertia.ts
file location aligns with theInertiaConfig
naming, too.
- renaming the Inertia config file to
1.2.2 - 2022-09-26
- 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
- for example: this package depends on
1.2.1 - 2022-09-25
- bump dependencies
1.2.0 - 2022-09-19
- register partial views, request and response decorations in the service provider’s
boot
method (instead ofregister
) which makes sure the container bindings are available
- bump dependencies
1.1.0 - 2022-08-25
- 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 externalurl
- update visibility to
protected
for internalresponse.inertia().filterPartialData()
method
request.inertia().share(data)
method: share data along the request lifecycle and add the shared data to the Inertia responserequest.inertia().sharedData()
method: retrieve the shared data- add
SharesData
class - make
InertiaRequest
andInertiaResponse
instances extend theSharesData
class allowing you to share data fromrequest.inertia()
andresponse.inertia()
- bump dependencies
request.inertia()
method: returns a request-related Inertia instance resolving Inertia data from the request- support Inertia partial reloads
- support Inertia lazy data evaluation
- bump dependencies
- add dedicated
InertiaRequest
andInertiaResponse
classes - the generic
Inertia
class exposes utility functions only
- removed
request.inertiaVersion()
method in favor ofrequest.inertia().version()
- bump dependencies
- bump dependencies
- add SSR support
- bump dependencies
- update to latest
Application
contract
0.1.0
release 🚀 🎉