diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..286cb72 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,29 @@ +### Added +- + +### Changed +- + +### Deprecated +- + +### Removed +- + +### Fixed +- + +### Security +- + +--- + +### Release PR Checklist +- [ ] Update version number in package.json +- [ ] Run `make install` to update version number in package-lock.json +- [ ] Make sure everything looks good in a DRY RUN of publishing this to npm: `npm publish --dry-run` + +After merge... +- [ ] Tag that commit on `master` +- [ ] Check out that commit +- [ ] Publish that version to NPM: `npm publish --access public` \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index ba0dedd..c7f7c40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@silintl/svelte-google-places-autocomplete", - "version": "1.1.6", + "version": "1.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@silintl/svelte-google-places-autocomplete", - "version": "1.1.6", + "version": "1.2.2", "license": "MIT", "devDependencies": { "@rollup/plugin-node-resolve": "^6.0.0", diff --git a/package.json b/package.json index c15d000..b946104 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@silintl/svelte-google-places-autocomplete", - "version": "1.2.0", + "version": "1.2.2", "description": "A minimal port of the [Google Places Autocomplete API](https://developers.google.com/maps/documentation/javascript/places-autocomplete) as a Svelte component.", "repository": { "type": "git", diff --git a/src/loader.js b/src/loader.js index a08d978..c053134 100644 --- a/src/loader.js +++ b/src/loader.js @@ -44,7 +44,7 @@ export function loadGooglePlacesLibrary(apiKey, callback) { element.async = true element.defer = true element.onload = onLibraryLoaded - element.src = `https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(apiKey)}&libraries=places` + element.src = `https://maps.googleapis.com/maps/api/js?key=${encodeURIComponent(apiKey)}&libraries=places&callback=Function.prototype` element.type = 'text/javascript' document.head.appendChild(element)