Releases: 5monkeys/django-bananas.js
Releases · 5monkeys/django-bananas.js
4.0.0
Allow passing an errorHandler function to api requests
- Allow passing an errorHandler function to api requests
Expose Context hooks, add PageContext
- Add a PageContext, giving a new way to access a Pages props
- Expose
useApp
andusePage
for a nicer way to access the contexts
Correctly set document titles
Fix a bug where a custom set title for a nav-item would not be passed through to document.title
3.6.0
Changes
- Enable passing in a custom container that wraps pages
3.5.3
Changes
- Deprecate
icon
prop, usenav
instead - Upgrade material-ui to 4.1.3
Potential side-effects
- Fixed issue highlighted by updated tests, where underlying
<AutoField/>
components did not spreadfieldProps
onto underlying elements
misc
- Rework the linter setup
- Move to Github Actions
- Switch to 5monkeys/cobertura-action from coveralls
- Remove unnecessary dependencies
- Bump devDependencies
- Bump peerDependencies
- Bump dependencies
- Use webpack 5
Allow URI-encoded read-parameters
Problem
URI-encoded strings and files are right now not parsed correctly in the router, resulting in a 404 when a value like this is used in the read/-view.
example:
/messages/hello%20there
/images/hello.jpg
In the above cases the router would interpret only the first part and query for hello.
Solution:
Add % and . to the router param-regex
Bug fixes concerning Custom Logo and PermissionRequired
- Fix error where a passed in logo component was wrongfully returned as
<src />
- Added makeUser function to login response before setting user in context to make sure user object is populated with hasPermission function
Allow nested menu items
This release allows users to nest menu items.
Final Form mutators
This version allows passing custom mutators to Final Form's form via Django-bananas form-implementation.