UNPKG

remix-typedjson

Version:

This package is a replacement for superjson to use in your Remix app. It handles a subset of types that `superjson` supports, but is faster and smaller.

105 lines (55 loc) • 2.67 kB
# CHANGELOG ## šŸš€ v0.4.1 - ā†©ļø Restore missing Remix peer dependencies [#37](https://github.com/kiliman/remix-typedjson/issues/37) ## šŸš€ v0.4.0 - ✨ Add support for `key` in `useTypedFetcher` [#35](https://github.com/kiliman/remix-typedjson/issues/35) - šŸ”„ Deprecate `TypedMetaFunction` since it didn't work anyway ## šŸš€ v0.3.1 - šŸ› Add support for dotted properties in serialized object [#22](https://github.com/kiliman/remix-typedjson/issues/22) ## šŸš€ v0.3.0 - ✨ Add support for `typeddefer` and `<TypedAwait>` [#20](https://github.com/kiliman/remix-typedjson/issues/20) ## šŸš€ v0.2.2 - šŸ“¦ Fix peer dependency to support Remix v2 ## šŸš€ v0.2.1 - šŸ“¦ Update peer dependency to support Remix v2 ## šŸš€ v0.2.0 - ✨ Add `registerCustomType` API ## šŸš€ v0.1.7 - ✨ Add `useTypedRouteLoaderData` - šŸ”Ø Export `UseDataFunctionReturn` & `RemixSerializedType` types [#19](https://github.com/kiliman/remix-typedjson/pull/19) ## šŸš€ v0.1.6 šŸ“¦ - Republish package due to incorrect build ## šŸš€ v0.1.5 - šŸ”Ø Export TypedFetcherWithComponents type [#17](https://github.com/kiliman/remix-typedjson/pull/17) ## šŸš€ v0.1.4 - šŸ”„ Remove `importHelpers: true` in tsconfig.json ## šŸš€ v0.1.3 - šŸ“¦ Fixup package versions ## šŸš€ v0.1.2 - šŸ”Ø Export TypedJsonResponse type [#10](https://github.com/kiliman/remix-typedjson/issues/10) ## šŸš€ v0.1.1 - šŸ”Ø Update peer dependencies for React 18 [#9](https://github.com/kiliman/remix-typedjson/pull/9) ## šŸš€ v0.1.0 - ✨ Add `TypedMetaFunction` support [#6](https://github.com/kiliman/remix-typedjson/issue/6) - šŸ› Fix peer dependencies [#7](https://github.com/kiliman/remix-typedjson/issues/7) ## šŸš€ v0.0.9 - ✨ Handle JSON.stringify standard arguments [#8](https://github.com/kiliman/remix-typedjson/pull/9) ## šŸš€ v0.0.8 - šŸ› Fix stack unwinding resulting in incorrect meta [#4](https://github.com/kiliman/remix-typedjson/issues/4) - šŸ”Ø Update `serialize` return value to always return `TypedJsonResult` ## šŸš€ v0.0.7 - šŸ› Correctly deserialize `undefined` [#3](https://github.com/kiliman/remix-typedjson/pull/3) - šŸ› Fix serialize meta of nested arrays [#2](https://github.com/kiliman/remix-typedjson/issues/2) ## šŸš€ v0.0.6 - šŸ› Fix typo in TypedJsonResult type - šŸ”Ø Replace wildcard export with specific items ## šŸš€ v0.0.5 - šŸ› Fix stringifying/parsing Remix data and add tests ## šŸš€ v0.0.4 - šŸ› Fix Remix stringification of `__meta__` ## šŸš€ v0.0.3 - šŸ”Ø Include `*.d.ts` files in package ## šŸš€ v0.0.2 - ✨ Add Remix replacements for typed loaders, actions, and fetchers ## šŸš€ v0.0.1 - šŸŽ‰ Intial version