From abe62a72cd348391bf9010945902ec8227674fee Mon Sep 17 00:00:00 2001 From: "Matthew Riley MacPherson (tofumatt)" Date: Mon, 20 Jul 2020 23:17:16 +0100 Subject: [PATCH] chore: Release 1.8.0 --- CHANGELOG.md | 4 + README.md | 2 +- bower.json | 52 +++++------ component.json | 26 +++--- dist/localforage.js | 2 +- dist/localforage.min.js | 2 +- dist/localforage.nopromises.js | 2 +- dist/localforage.nopromises.min.js | 2 +- package.json | 144 ++++++++++++++--------------- 9 files changed, 119 insertions(+), 117 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f810beb5..eacbc7e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file will include all API breakage, new features, and upgrade info in localForage's lifetime. +### [1.8.0](https://github.com/mozilla/localForage/releases/tag/1.8.0) + +* No changes to code, but added a `module` field in `package.json` for better ESM support. See: #940. + ### [1.7.4](https://github.com/mozilla/localForage/releases/tag/1.7.4) * Use `openKeyCursor` instead of `openCursor` for `key()` retrieval. Props to @MeMark2 for the fix, and thanks to @lincolnthree and @f for additional testing! diff --git a/README.md b/README.md index a2b92b9e..5e5c8300 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Dependency Status](https://img.shields.io/david/localForage/localForage.svg)](https://david-dm.org/localForage/localForage) [![npm](https://img.shields.io/npm/dm/localforage.svg?maxAge=2592000)](https://npmcharts.com/compare/localforage?minimal=true) [![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/localforage/badge?style=rounded)](https://www.jsdelivr.com/package/npm/localforage) -[![minzipped size](https://badgen.net/bundlephobia/minzip/localforage)](https://bundlephobia.com/result?p=localforage@1.7.4) +[![minzipped size](https://badgen.net/bundlephobia/minzip/localforage)](https://bundlephobia.com/result?p=localforage@1.8.0) localForage is a fast and simple storage library for JavaScript. localForage improves the offline experience of your web app by using asynchronous storage diff --git a/bower.json b/bower.json index c12fb8be..c1e7d3cd 100644 --- a/bower.json +++ b/bower.json @@ -1,29 +1,27 @@ { - "name": "localforage", - "main": [ - "dist/localforage.js" - ], - "ignore": [ - ".travis.yml", - "CONTRIBUTING.md", - "config.rb", - "Gemfile", - "Gemfile.lock", - "Rakefile", - "LICENSE", - "docs*", - "examples*", - "test*", - "site*" - ], - "dependencies": {}, - "devDependencies": { - "es6-promise": "~1.0.0", - "requirejs": "~2.1.10", - "mocha": "~3.4.2", - "expect": "~0.3.1", - "assert": "~0.1.0", - "modernizr": "~2.8.1" - }, - "version": "1.7.4" + "name": "localforage", + "main": ["dist/localforage.js"], + "ignore": [ + ".travis.yml", + "CONTRIBUTING.md", + "config.rb", + "Gemfile", + "Gemfile.lock", + "Rakefile", + "LICENSE", + "docs*", + "examples*", + "test*", + "site*" + ], + "dependencies": {}, + "devDependencies": { + "es6-promise": "~1.0.0", + "requirejs": "~2.1.10", + "mocha": "~3.4.2", + "expect": "~0.3.1", + "assert": "~0.1.0", + "modernizr": "~2.8.1" + }, + "version": "1.8.0" } diff --git a/component.json b/component.json index be8a05cb..6364d569 100644 --- a/component.json +++ b/component.json @@ -1,15 +1,15 @@ { - "name": "localforage", - "version": "1.7.4", - "dependencies": { - "then/promise": "5.0.0" - }, - "scripts": [ - "build/es5src/localforage.js", - "build/es5src/utils/serializer.js", - "build/es5src/drivers/indexeddb.js", - "build/es5src/drivers/localstorage.js", - "build/es5src/drivers/websql.js" - ], - "main": "build/es5src/localforage.js" + "name": "localforage", + "version": "1.8.0", + "dependencies": { + "then/promise": "5.0.0" + }, + "scripts": [ + "build/es5src/localforage.js", + "build/es5src/utils/serializer.js", + "build/es5src/drivers/indexeddb.js", + "build/es5src/drivers/localstorage.js", + "build/es5src/drivers/websql.js" + ], + "main": "build/es5src/localforage.js" } diff --git a/dist/localforage.js b/dist/localforage.js index f8ac9b5c..e1dbb269 100644 --- a/dist/localforage.js +++ b/dist/localforage.js @@ -1,6 +1,6 @@ /*! localForage -- Offline Storage, Improved - Version 1.7.4 + Version 1.8.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ diff --git a/dist/localforage.min.js b/dist/localforage.min.js index 034e9540..24b01834 100644 --- a/dist/localforage.min.js +++ b/dist/localforage.min.js @@ -1,6 +1,6 @@ /*! localForage -- Offline Storage, Improved - Version 1.7.4 + Version 1.8.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ diff --git a/dist/localforage.nopromises.js b/dist/localforage.nopromises.js index f699fab9..48bbcaf8 100644 --- a/dist/localforage.nopromises.js +++ b/dist/localforage.nopromises.js @@ -1,6 +1,6 @@ /*! localForage -- Offline Storage, Improved - Version 1.7.4 + Version 1.8.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ diff --git a/dist/localforage.nopromises.min.js b/dist/localforage.nopromises.min.js index 6ce89685..43f9472d 100644 --- a/dist/localforage.nopromises.min.js +++ b/dist/localforage.nopromises.min.js @@ -1,6 +1,6 @@ /*! localForage -- Offline Storage, Improved - Version 1.7.4 + Version 1.8.0 https://localforage.github.io/localForage (c) 2013-2017 Mozilla, Apache License 2.0 */ diff --git a/package.json b/package.json index e43cfcfe..e000a40b 100644 --- a/package.json +++ b/package.json @@ -1,74 +1,74 @@ { - "name": "localforage", - "author": "Mozilla", - "license": "Apache-2.0", - "description": "Offline storage, improved.", - "keywords": [ - "indexeddb", - "localstorage", - "storage", - "websql" - ], - "version": "1.7.4", - "homepage": "https://github.com/localForage/localForage", - "repository": { - "type": "git", - "url": "git://github.com/localForage/localForage.git" - }, - "scripts": { - "build": "node -e \"require('grunt').cli()\" null build", - "prettify": "prettier --write \"src/**/*.js\" \"test/**/*.js\"", - "publish-docs": "node -e \"require('grunt').cli()\" null copy build-rules-html publish-rules", - "serve": "node -e \"require('grunt').cli()\" null serve", - "test": "node -e \"require('grunt').cli()\" null test" - }, - "devDependencies": { - "babel-core": "^6.5.1", - "babel-eslint": "^7.2.3", - "babel-loader": "^6.2.2", - "babel-plugin-add-module-exports": "^0.1.2", - "babel-plugin-transform-es2015-modules-umd": "^6.5.0", - "babel-preset-es2015": "^6.6.0", - "babel-preset-es2015-loose": "^7.0.0", - "babelify": "^7.2.0", - "browserify-derequire": "^0.9.4", - "bundle-collapser": "^1.2.1", - "cors": "^2.3.1", - "eslint-config-prettier": "^2.9.0", - "grunt": "^0.4.2", - "grunt-babel": "^6.0.0", - "grunt-browserify": "^3.8.0", - "grunt-contrib-concat": "^0.3.0", - "grunt-contrib-connect": "^0.8.0", - "grunt-contrib-uglify": "^0.4.0", - "grunt-contrib-watch": "^0.5.0", - "grunt-es3-safe-recast": "^0.1.0", - "grunt-eslint": "^20.0.0", - "mocha-headless-chrome": "3.1.0", - "grunt-rollup": "^0.6.2", - "grunt-run": "^0.5.2", - "grunt-saucelabs": "^5.1.2", - "grunt-ts": "^6.0.0-beta.11", - "grunt-webpack": "^1.0.11", - "husky": "^2.3.0", - "lint-staged": "^8.1.7", - "load-grunt-tasks": "^0.4.0", - "mocha": "^3.4.2", - "prettier": "~1.12.0", - "rollupify": "^0.1.0", - "script-loader": "^0.6.1", - "typescript": "^2.0.3", - "uglify-js": "^2.3.x", - "webpack": "^1.12.13", - "webpack-dev-server": "^1.10.1" - }, - "main": "dist/localforage.js", - "module": "src/localforage.js", - "typings": "typings/localforage.d.ts", - "bugs": { - "url": "http://github.com/localForage/localForage/issues" - }, - "dependencies": { - "lie": "3.1.1" - } + "name": "localforage", + "author": "Mozilla", + "license": "Apache-2.0", + "description": "Offline storage, improved.", + "keywords": [ + "indexeddb", + "localstorage", + "storage", + "websql" + ], + "version": "1.8.0", + "homepage": "https://github.com/localForage/localForage", + "repository": { + "type": "git", + "url": "git://github.com/localForage/localForage.git" + }, + "scripts": { + "build": "node -e \"require('grunt').cli()\" null build", + "prettify": "prettier --write \"src/**/*.js\" \"test/**/*.js\"", + "publish-docs": "node -e \"require('grunt').cli()\" null copy build-rules-html publish-rules", + "serve": "node -e \"require('grunt').cli()\" null serve", + "test": "node -e \"require('grunt').cli()\" null test" + }, + "devDependencies": { + "babel-core": "^6.5.1", + "babel-eslint": "^7.2.3", + "babel-loader": "^6.2.2", + "babel-plugin-add-module-exports": "^0.1.2", + "babel-plugin-transform-es2015-modules-umd": "^6.5.0", + "babel-preset-es2015": "^6.6.0", + "babel-preset-es2015-loose": "^7.0.0", + "babelify": "^7.2.0", + "browserify-derequire": "^0.9.4", + "bundle-collapser": "^1.2.1", + "cors": "^2.3.1", + "eslint-config-prettier": "^2.9.0", + "grunt": "^0.4.2", + "grunt-babel": "^6.0.0", + "grunt-browserify": "^3.8.0", + "grunt-contrib-concat": "^0.3.0", + "grunt-contrib-connect": "^0.8.0", + "grunt-contrib-uglify": "^0.4.0", + "grunt-contrib-watch": "^0.5.0", + "grunt-es3-safe-recast": "^0.1.0", + "grunt-eslint": "^20.0.0", + "mocha-headless-chrome": "3.1.0", + "grunt-rollup": "^0.6.2", + "grunt-run": "^0.5.2", + "grunt-saucelabs": "^5.1.2", + "grunt-ts": "^6.0.0-beta.11", + "grunt-webpack": "^1.0.11", + "husky": "^2.3.0", + "lint-staged": "^8.1.7", + "load-grunt-tasks": "^0.4.0", + "mocha": "^3.4.2", + "prettier": "~1.12.0", + "rollupify": "^0.1.0", + "script-loader": "^0.6.1", + "typescript": "^2.0.3", + "uglify-js": "^2.3.x", + "webpack": "^1.12.13", + "webpack-dev-server": "^1.10.1" + }, + "main": "dist/localforage.js", + "module": "src/localforage.js", + "typings": "typings/localforage.d.ts", + "bugs": { + "url": "http://github.com/localForage/localForage/issues" + }, + "dependencies": { + "lie": "3.1.1" + } }