- e2490f0: Fix children and fallback prop types of components with unknown condition names, e.g. role names
- a666bea: Add type support for ClientActionFunctionArgs and ClientLoaderFunctionArgs from React Router v7
- d5f39b1: - Cleaner syntax to provide values from the root loader:
return {__is: is.__values /* other loader data */ };
- New:
return { ...is /* other loader data */ };
- Deprecation:
is.__values
and__is
property in the root loader data. Use...is
or__is_values: is.__is_values
instead.
- e55e957: Workaround for typing unknown property (condition) names, e.g. role names as boolean props
- 021eb32: Upgrade to
react-router@^7.0.0
- 0bfb726: Fix interpretation of array condition type, for example:
["foo", "bar"]
when value type is"foo" | "bar"
- 921033b: Update
react-router
version range from^6.23.1
to^6.0.0
- 435b0e0: Add support for
ClientActionFunctionArgs
&ClientLoaderFunctionArgs
types
- d6a965e: Add package.json keywords
-
0b9bb54: Fix React Router compatibility
- Change dependency from
@remix-run/react
toreact-router
- Change dependency from
- d666c03: Add
toBooleanValues
utility
- ebdd4bd: Change the default method to match array type values and conditions from
"every"
to"some"
.
-
f70b0e2: Improve typings & add test:
- Allow read-only array conditions
- Disallow
children
&fallback
as condition names
Add option to specify how to match array type values and conditions:
- Use
"every"
(default) to require all conditions to match the values, or"some"
to require only some conditions to match. - The default will be switched to
"some"
in version0.2
.
- Update README.md
- 75ff4a0: Update logic for comparing values to array-type conditions. Fix README.md.
- 5175bf2: First release