Releases: ideal-postcodes/postcode
Releases · ideal-postcodes/postcode
5.1.0
5.0.0
5.0.0 (2020-07-29)
Features
- 5.0.0: API Updates (9d576c8)
- ES Modules: Create ES Module compatible build (44ef920)
- Match: Implement match (95f1d0e)
- Regex: Exports and documents used Regexs (dd1315d)
- Replace: Implement replace (deb348b)
BREAKING CHANGES
- 5.0.0: -
postcode
no longer uses default exports. All exports are named
postcode
no longer exports a class- Legacy
new Postcode()
functionality has been removed. Methods attached toPostcode
are all available as named exports. E.g.new Postcode(postcode).unit()
becomestoUnit(postcode)
;
4.0.0
3.0.0
2.0.1
2.0.0
2.0.0 (12/04/2019)
- Breaking Change: Require minimum node.js of 8.0.0
- Ported to typescript (now exports typings)
- Provides a cleaner, more modern API to extract and parse while supporting old methods
- Add static methods to extract single datapoints
- Add a ValidPostcode class with accessor methods which can be destructured
- Updated documentation: postcodejs.ideal-postcodes.dev
- Added benchmarking