Skip to content

Releases: sirlisko/uk-postcode-validator

v2.0.0

Choose a tag to compare

@sirlisko sirlisko released this 08 Oct 19:45
003a1f7

Breaking

  • Stricter validation. Postcodes are now checked against the per-position letter rules from BS 7666, and the whole string must match. These were accepted by 1.x and are now rejected:
    • text around a postcode, e.g. "GIR0AA nonsense"
    • letters not used in a given position, e.g. "Q1 1AA", "N7 7CA", "ZZ99 9ZZ"
  • Build targets ES2017 instead of ES5.

Features

  • Named isValid export: import { isValid } from "uk-postcode-validator" or const { isValid } = require("uk-postcode-validator"). The default export still works.
  • Surrounding whitespace and repeated spaces between the outward and inward codes are now accepted.

v1.1.3

Choose a tag to compare

@github-actions github-actions released this 15 Dec 22:15
5b7dce5

Patch Changes

  • cffb6eb: Refined NPM package by including essential files exclusively.

v1.1.2

Choose a tag to compare

@github-actions github-actions released this 17 Oct 11:15
6769ab9

Patch Changes

  • b300e86: Updated the documentation

v1.1.1

Choose a tag to compare

@sirlisko sirlisko released this 15 Nov 11:06

v1.1.0...v1.1.1

Added types

Choose a tag to compare

@sirlisko sirlisko released this 14 Nov 14:30

v1.0.2...v1.1.0

v1.0.2

Choose a tag to compare

@sirlisko sirlisko released this 14 Nov 11:39
  • fixed secutiry issues with devDependencies 7e70dfd
  • fixed missing hyphen in regex (#2) 3b467fd
  • fixed missing hyphen in regex fd84078
  • fixed validation for GIR 0AA 0796226
  • improved documentation 972083a

v1.0.0...v1.0.2

v1.0.0

Choose a tag to compare

@sirlisko sirlisko released this 10 Oct 09:01
kick-off πŸš€