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.
- Fixed
dist/
filenames toreact-access
, copypasta got me again!
- Moved away from
webpack
and aligned withreact-localize
for all the tooling / bundling / coverage stuff. - Fixed an issue where 1.1.0 was effectively unusable due to bundle issues.
- Moved away from
enzyme
in order to help simplify our tests and TravisCI test runner matrix - Dropped
lodash.intersection
in our default validator, which reall helped with the bundle size - Updated to Webpack 4 because reasons
- Tests now run with
jest
andreact-testing-library
- I released this on the public registry unlike 1.0.0, which was mistakenly only made available on my work registry. Sorry!
There have been no changes from the -alpha
releases, however
those have been aggregated to this section for ease of reading.
This version is compatible with the new React 16.3 Context API
🎉
- A contributors section for the folks who've helped recently get this updated and reviewed.
- Introduced
create-react-context
polyfill, so we can use new new, while still being safe for old old - Broke many API things, namely our exports:
<ReactAccessContext/>
-><ReactAccessProvider/>
<ReactAccessConsumer/>
is brand new, but you probably don't need it<RequireForAccess/>
-> uh, oh, it's the same
userPermissions
was simplified topermissions
, not backwards compatible
requireAll
works now with the defaultvalidator
🎉- Fixed a
peerDependency
bug on introduced inalpha1
- Updated our yarn stuff to not use my work internal registry by mistake.
- Enhanced TravisCI matrix to include support for testing ^16.x, and 16.3.x prerelease versions, which use the new React Context API
- Our
README.md
has updated examples on the new API usage - Updated TravisCI testing framework for supported React versions
- Simplified
peerDependency
versions allowed for React
- Enhanced TravisCI matrix to include support for testing ^16.x, and 16.3.x prerelease versions, which use the new React Context API
- Our
README.md
has updated examples on the new API usage
- Introduced
create-react-context
polyfill, so we can use new new, while still being safe for old old - Broke many API things, namely our exports:
<ReactAccessContext/>
-><ReactAccessProvider/>
<ReactAccessConsumer/>
is brand new, but you probably don't need it<RequireForAccess/>
-> uh, oh, it's the same
userPermissions
was simplified topermissions
, not backwards compatible
requireAll
still does not work ;)- Fixed a
peerDependency
bug on introduced inalpha1
- Updated our yarn stuff to not use my work internal registry by mistake.
- Updated TravisCI testing framework for supported React versions
- Simplified
peerDependency
versions allowed for React
- New
peerDependencies
update! Be sure to include prop-types
- We no longer utilize
React.PropTypes
. We also don't have a strategy just yet on how to recommend you using this module in dev & production without shipping useless bits. TBD! - Support for
react@0.14.x
has been dropped, although our tests pass this is likely to break in other apps. We now requirereact@^0.14.9
, or anything on the15.x
branch <RequireForAccess/>
now only accepts a single child node- The extraneous
<div/>
soup we were adding to the DOM has been removed, if you had previously relied on thatdiv.react-access-valid
for layout
- Corrected issues that were commit direct to master previously when trying to 'fix testing matrix' for other react versions. Lesson learned on no PRs. Again :)
- Tests for
<ReactAccessContext/>
rendering & default validator
- Default validator behavior did not work when only requiring 1 permission
- Test Runner & basic functionality unit tests added for RequireForAccess
- TravisCI support, with react matrix to ensure module is working across supported versions.
- yarn
README.md
has basic API information for the two primary componentspeerDependencies
updated to allow broaderreact
semver support
- The default validator was fixed so it actually works and doesn't throw.
- a
CHANGELOG.md
🎉
- Quick Start example was not able to be copypasta'd, and had props mixed up between components.
- removed full lodash from the bundle by only importing intersection