4.2.1 (2023-12-14)
- Acronyms: Building name check (f43a741)
4.2.0 (2021-12-31)
- Sort: Export pure sort scoring method (2e6b9de)
4.1.1 (2021-11-17)
- Sub + Building Name: Detect address range (cbffe30)
4.1.0 (2021-05-17)
- Sort: Export sorting attributes (f0625f4)
4.0.0 (2021-03-05)
- Release: Trigger release (764d1e4)
- Premise Attributes: Document number and unit (a363dc9)
- Building Numbers: Experimental attempt at returning actual (0f653e9)
- Building Units: Experimental attempt at returning a building unit (e72d7c4)
- ES Module: Add ESM build (e6b5632)
- Premise Attributes: - formattedADdress now returns
unit
andnumber
- FormattedPremise interface includes
unit
andnumber
3.0.0 (2020-12-10)
- Semantic Release: Automate npm release (06ff64f)
- Node: Node 8 no longer supported
- Node: Node 8 no longer forms part of CI testing
- Update dependencies
- Update documentation
- Reference PAF API
- Reference typedocs
- Fix: Handle building names that contain range on rule 6
- Formatting updates with guidance and examples outlined in the latest PAF Programmers Guide (Edition 7, Version 6):
- Where a building name exception exists in rule 3, these names are no longer lower cased as documented in Table 27a. They now adhere to the (conflicting) example defined in Table 22
- Building ranges which contain specific prefixes (e.g. Back of, Stalls, Maisonette) are no longer broken up across lines
- Added
line_1
,line_2
,line_3
andpremise
accessor methods onAddress
instances - Standardise project with prettier and @cablanchard/tslint
- Use stardardised compile options from @cablanchard/tsconfig
- Added benchmark suite
- Add runkit example
- Use whitelist to generate npm package
- Fix: Drop nyc_output from npm package
- Project reorganisation
- Typescript files omitted from npm package
- Compiled js and typing files omitted from project repository
- Moved compiled files to
dist/
- Dropped unused assets from npm module
- Fix: typings for
Address.sort
(previously returned inappropriate type) - Fix: address sort comparator
- Fix: formatting for corner case on rule6
- Node.js 6.x and above supported only
- Premise elements are no longer capitalised by default. PAF data should be appropriately capitalised
- Address class must be extracted from the library. E.g.
// New method of retrieving class
const { Address } = require("uk-clear-addressing");
Address.sort
implements a sorting method which allows twoaddress
objects to be compared- This project has been ported to typescript. Typings now available
- formattedAddress() now returns a premise attribute. This is a computed attribute to isolate the premise name taking into account all available information.
- Added fallback for 4 line addresses (very rare edge case): When an address spills over 3 lines, the remaining lines (lines 4 or more) are appended to line 3 and separated by commas
- Added fallback for address with only a sub_building_name (very rare edge case): See
weirdRule
in index.js - Performance Improvement: Result of formattedAddress is cached
- Performance Improvement: Removal of string dependency