- Singular code style now enforced (bracket styles, line endings, etc.)
- Changes to repo name (now Grapnel instead of Grapnel.js)
- Wrapper function should be evaluated as expression
CallStack now allows global middleware
- CallStack: Allow middleware to inherit a global stack
- Added tests
Various changes to enable more functionality but at a cost to library size. Many changes were made because they made sense to the longevity of the project, as library size doesn't seem to be a huge deciding factor for developers who use it.
- Separated
CallStack
andRequest
from withininvoke
and added extra functionality - Deprecated:
router.fragment
-- Userouter.path()
- Added
path()
- Added middleware support to main router context method
- Routes inherit params from context
- Added middleware support to router context
- Added
router.once
to allow events to be fired only once
- Added environmnet option
- Changed option property
usePushState
intomode
. It was not changeable, so it does not make sense for it to be an 'option' - Added tests
- Client-side modules no longer assign route event listeners to navigate by default
- Minor changes to allow Server-side routing
- Fragment property clarification as to what it does The following deprecated items were removed:
- Removed duplicate anchor & hash as it was redundant
- Removed Grapnel().router as it was also redundant
- Fixes issue with Safari >= 6.1.0 where routes load more than once on init (#24)
- Added middleware support
- Increased AMD compatibility
- Fix propagation bug (#23)
- Added event.stopPropagation
- Added
#!
support - Added tests/gruntfile
- Added history pushState support
- Deprecated router.fragment.defaultHash and router.fragment.reset()
- Moved production file into
/dist
directory - Added to bower registry
- Removed unnecessary "key/value hooks" features, as it added to the footprint and was an infrequently-used feature
- Added more route support
- Added context support
- Cleaned up events and made them faster
- Backwards compatibility (with some minor tweaks)
- Added support for AMD modules
- Publicized
util
object
- Added routing capabilities
- Cleaned up documentation
- Privatized utility methods:
map
andtrigger
- Moved
anchor
into its own object - Internal
forEach
workaround for compatibility issues - Removed version from library filename
- Increased compatibility
- Fixed bug where events would run twice if there were more than one matches
- Added RegEx support for actions
- Compatibility: Map Array workaround for compatibility issues with archaic browsers
- Added
this.version
property
- Initial release