All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Feat: Add Inertia version 2 DeferredProp feature
- Feat: Add async support for partial loading
- Examples: Add code example for Inertia version 2 support features
- Add config option to pass extra context to the template via the
extra_template_contextoption inInertiaConfig - Add support for react + vite hot reload
- Fix: safely escape special characters in JSON payload to avoid (#30) -- @mofman
- Chore: unpin fastapi and jinja versions to allow install with latest versions -- @holandes22
- Feat: handle serialization / encoding of prop which are of type list
- this allows passing to inertia, as prop value, a list of models and they will be encoded as expected
- Fix: SSR failed when the inertia server responded with an empty array
- Examples: Add examples for both SSR and non-SSR in vue language.
- [BREAKING CHANGE] Introduce templating via Jinja2 instead of a raw HTML string
- For migration guide, see the migration guide
- [BREAKING CHANGE] Remove deprecated use of
requests- For migration guide, see the migration guide
- [BREAKING CHANGE] Remove deprecated use of
use_typescript- For migration guide, see the migration guide
- Deprecate
requestspackage for SSR in favour ofhttpxpackage- Removed in 1.0.0
- For migration guide, see the migration guide
- Test for deprecation warning for
httpxpackage anduse_typescriptconfiguration option
- Cache vite manifest content
- Better type vite manifest
- Allow for multiple css files to be in the manifest file
- Deprecate
use_typescriptin favour ofentrypoint_filenamein InertiaConfig- Removed in 1.0.0
- For migration guide, see the migration guide
- Introduce root_directory to InertiaConfig instead of assuming it
- Introduce assets_prefix to InertiaConfig instead of assuming it
- Introduce new dev dependency: BeautifulSoup
- Use it instead of manual parsing as this is more reliable and less painful
- Handle better JSONification of Pydantic models
- Use
json.loads(model.model_dump.json())rather thanmodel.model_dump()To avoid issues with some common field types (UUID, datetime, etc.)
- Use
- Expose a
_render_jsonmethod on inertia to allow easier overriding.
- Bump FastAPI version from 0.110.2 to 0.111.0
- Update
README.mdand available versions
- Initial release.