Skip to content

Commit 7b82365

Browse files
authored
Merge pull request #19 from ideal-postcodes/updates
[WIP] Updates
2 parents ee3078b + 36adf0a commit 7b82365

16 files changed

Lines changed: 2886 additions & 552 deletions

.circleci/config.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
browser:
8+
docker:
9+
- image: circleci/node:12-browsers
10+
steps:
11+
- checkout
12+
- restore_cache:
13+
keys:
14+
- v1-dependencies-{{ checksum "package-lock.json" }}
15+
- run: npm install
16+
- save_cache:
17+
paths:
18+
- node_modules
19+
key: v1-dependencies-{{ checksum "package-lock.json" }}
20+
- run: npm test
21+
22+
workflows:
23+
version: 2
24+
push:
25+
jobs:
26+
- browser

.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [3.0.8] 2020-01-29
4+
- Fix: Guarantee that form cannot be submitted on Enter keypress
5+
- Docs: Remove documentation.md. This is maintained on https://ideal-postcodes.co.uk/documentation/jquery-plugin
6+
- Test: Test on jQuery 3.4 and 3.3
7+
38
## [3.0.7] 2018-03-14
49
- Fix: Custom API endpoint can be passed to setup configuration object
510
- Fix: Class Methods `lookupPostcode`, `lookupAddress` and `checkKey` accept custom endpoint

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
Add UK address lookups with a simple postcode input field on any web form with the Ideal-Postcodes.co.uk API. Ideal Postcodes uses Royal Mail's addressing database, the Postcode Address File (PAF).
44

5-
[![Build Status](https://travis-ci.org/ideal-postcodes/jquery.postcodes.png)](https://travis-ci.org/ideal-postcodes/jquery.postcodes)
6-
[![Sauce Test Status](https://saucelabs.com/buildstatus/cablanchard)](https://saucelabs.com/u/cablanchard)
7-
[![Sauce Test Status](https://saucelabs.com/browser-matrix/cablanchard.svg)](https://saucelabs.com/u/cablanchard)
5+
[![CircleCI](https://circleci.com/gh/ideal-postcodes/jquery.postcodes/tree/master.svg?style=svg)](https://circleci.com/gh/ideal-postcodes/jquery.postcodes/tree/master)
86

97
PAF is licensed from the Royal Mail and incurs a license fee per lookup. We make PAF available to the public at **2p** per [external](https://ideal-postcodes.co.uk/termsandconditions#external) lookup.
108

@@ -61,7 +59,7 @@ For examples of the more advanced ways you can configure the plugin take a look
6159
Run automated tests with
6260

6361
```
64-
grunt test
62+
npm test
6563
```
6664

6765
Please use jQuery 1.9.x or higher. This plugin has been tested against jQuery 1.9.x, 1.10.x, 1.11.x, 2.0.x, 2.1.x, 2.2.x, 3.0.x. 3.1.x and 3.2.x

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery.postcodes",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"authors": [
55
"support@ideal-postcodes.co.uk"
66
],

dist/postcodes.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/*! Ideal Postcodes jQuery Plugin - v3.0.7 - 2018-03-14
1+
/*! Ideal Postcodes jQuery Plugin - v3.0.8 - 2020-01-29
22
* https://github.com/ideal-postcodes/jquery.postcodes
3-
2018 Ideal Postcodes; Licensed MIT */
3+
2020 Ideal Postcodes; Licensed MIT */
44
(function($) {
55
"use strict";
66
// Cache for all new instances of the plugin
@@ -212,6 +212,8 @@
212212
.keypress(function (event) {
213213
if (event.which === 13) {
214214
self.$button.trigger("click");
215+
event.preventDefault();
216+
return false;
215217
}
216218
})
217219
.focus(function () {

dist/postcodes.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)