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.
getInstance()
is a new method of Singleton class.
- Move public props to prototype object of outer most pattern.
v3.0.1 - 2017-07-22
- Minor updates to code.
- Refactor
extend()
helper to use Object.assign by using babel plugin transform-object-assign.
v3.0.0 - 2017-07-04
- Created DEVELOP.md.
- Flyweight pattern now can take in a callback instead of a value.
- Mediator pattern bug participant not found.
- Chain of responsibility behavior changed from LIFO to FIFO.
- Flyweight pattern behavior updated so that
create()
adds the objects instead ofheuristic()
.
- Moved documentation from README to wiki.
- Made npm release simple to avoid having documentation.
- Mediator methods now take in a single argument type Object instead of multiple arguments.
- Mediator
send()
will no longer broadcast if the receiver is not found.
v2.0.0 - 2017-04-29
- Include example directory that installs the library and uses it.
- Added .npmignore file to ignore src/ directory.
- Using babel-cli and some related modules to compile for npm usage.
- Introducing MVW pattern.
- Expose createPatternBuilder functionality.
- Now using Travis CI.
- We can now use the library without having to have ES6 features.
- Created a lib/ directory to publish to npm.
- Changed package.json "main" to lib/go-patterns.js.
- Modified babel presets and plugins.
v1.0.2 - 2017-04-23
- Introduced CHANGELOG.md into project.
- Library had dependencies listed but are only used for development.
- Flyweight now allows empty options as do the rest of the patterns.
- Source and distribution files were renamed from index/bundle to library name.
- Unit tests are now testing the library's root index.js file instead of an inner file.
v1.0.1 - 2017-04-04
- Index.js module added to root directory.
v1.0.0 - 2017-04-03
- First release shipped with the following patterns:
- creational/singleton
- creational/factory
- behavioral/publishSubscribe
- behavioral/chainOfResponsibility
- behavioral/mediator
- behavioral/command
- behavioral/memento
- structural/flyweight
- Unit tests created using Karma.