Comparing version 5.24.0 to 6.0.0-next.1699884161.4282182128d987627f6f12b3a41caeb84f98b561
111
package.json
{ | ||
"name": "cachely", | ||
"version": "5.24.0", | ||
"version": "6.0.0-next.1699884161.4282182128d987627f6f12b3a41caeb84f98b561", | ||
"description": "A tiny wrapper that sits around your request function that caches its data for a specified duration, provides updates as requested rather than polling each interval", | ||
@@ -11,3 +11,5 @@ "homepage": "https://github.com/bevry/cachely", | ||
"caching", | ||
"es2017", | ||
"es2016", | ||
"es2021", | ||
"es2022", | ||
"export-default", | ||
@@ -72,3 +74,3 @@ "fetching", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=4" | ||
}, | ||
@@ -102,4 +104,4 @@ "editions": [ | ||
{ | ||
"description": "TypeScript compiled against ES2017 for Node.js with Require for modules", | ||
"directory": "edition-es2017", | ||
"description": "TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Require for modules", | ||
"directory": "edition-es2022", | ||
"entry": "index.js", | ||
@@ -109,7 +111,7 @@ "tags": [ | ||
"javascript", | ||
"es2017", | ||
"es2022", | ||
"require" | ||
], | ||
"engines": { | ||
"node": "10 || 12 || 14 || 16 || 18 || 20 || 21", | ||
"node": "12 || 14 || 16 || 18 || 20 || 21", | ||
"browsers": false | ||
@@ -119,4 +121,4 @@ } | ||
{ | ||
"description": "TypeScript compiled against ES2017 for Node.js with Import for modules", | ||
"directory": "edition-es2017-esm", | ||
"description": "TypeScript compiled against ES2021 for Node.js 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules", | ||
"directory": "edition-es2021", | ||
"entry": "index.js", | ||
@@ -126,3 +128,33 @@ "tags": [ | ||
"javascript", | ||
"es2017", | ||
"es2021", | ||
"require" | ||
], | ||
"engines": { | ||
"node": "8 || 10 || 12 || 14 || 16 || 18 || 20 || 21", | ||
"browsers": false | ||
} | ||
}, | ||
{ | ||
"description": "TypeScript compiled against ES2016 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules", | ||
"directory": "edition-es2016", | ||
"entry": "index.js", | ||
"tags": [ | ||
"compiled", | ||
"javascript", | ||
"es2016", | ||
"require" | ||
], | ||
"engines": { | ||
"node": "4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21", | ||
"browsers": false | ||
} | ||
}, | ||
{ | ||
"description": "TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules", | ||
"directory": "edition-es2022-esm", | ||
"entry": "index.js", | ||
"tags": [ | ||
"compiled", | ||
"javascript", | ||
"es2022", | ||
"import" | ||
@@ -138,7 +170,8 @@ ], | ||
"type": "module", | ||
"main": "edition-es2017/index.js", | ||
"main": "index.cjs", | ||
"exports": { | ||
"node": { | ||
"import": "./edition-es2017-esm/index.js", | ||
"require": "./edition-es2017/index.js" | ||
"import": "./edition-es2022-esm/index.js", | ||
"default": "./index.cjs", | ||
"require": "./edition-es2022/index.js" | ||
}, | ||
@@ -152,33 +185,34 @@ "browser": { | ||
"dependencies": { | ||
"oneday": "^4.17.0" | ||
"editions": "^6.11.0", | ||
"oneday": "^4.18.0" | ||
}, | ||
"devDependencies": { | ||
"@bevry/update-contributors": "^1.22.0", | ||
"@types/node": "^20.8.10", | ||
"@typescript-eslint/eslint-plugin": "^6.9.1", | ||
"@typescript-eslint/parser": "^6.9.1", | ||
"assert-helpers": "^8.4.0", | ||
"eslint": "^8.52.0", | ||
"eslint-config-bevry": "^3.27.0", | ||
"@bevry/update-contributors": "^1.23.0", | ||
"@types/node": "^20.9.0", | ||
"@typescript-eslint/eslint-plugin": "^6.10.0", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"assert-helpers": "^11.2.0", | ||
"eslint": "^8.53.0", | ||
"eslint-config-bevry": "^3.29.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"kava": "^5.15.0", | ||
"make-deno-edition": "^1.3.0", | ||
"prettier": "^3.0.3", | ||
"kava": "^7.1.0", | ||
"prettier": "^3.1.0", | ||
"projectz": "^2.23.0", | ||
"surge": "^0.23.1", | ||
"typechecker": "^7.18.0", | ||
"typechecker": "^8.1.0", | ||
"typedoc": "^0.25.3", | ||
"typescript": "5.2.2", | ||
"valid-directory": "^4.0.0", | ||
"valid-module": "^1.17.0" | ||
"valid-directory": "^4.1.0", | ||
"valid-module": "^2.1.0" | ||
}, | ||
"scripts": { | ||
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-browsers && npm run our:compile:edition-es2017 && npm run our:compile:edition-es2017-esm && npm run our:compile:types", | ||
"our:compile:deno": "make-deno-edition --attempt", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -Rf edition-browsers && mv edition-temp edition-browsers ) )", | ||
"our:compile:edition-es2017": "tsc --module commonjs --target ES2017 --outDir ./edition-es2017 --project tsconfig.json && ( test ! -d edition-es2017/source || ( mv edition-es2017/source edition-temp && rm -Rf edition-es2017 && mv edition-temp edition-es2017 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2017/package.json", | ||
"our:compile:edition-es2017-esm": "tsc --module ESNext --target ES2017 --outDir ./edition-es2017-esm --project tsconfig.json && ( test ! -d edition-es2017-esm/source || ( mv edition-es2017-esm/source edition-temp && rm -Rf edition-es2017-esm && mv edition-temp edition-es2017-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2017-esm/package.json", | ||
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )", | ||
"our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next", | ||
"our:compile": "npm run our:compile:edition-browsers && npm run our:compile:edition-es2016 && npm run our:compile:edition-es2021 && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types", | ||
"our:compile:edition-browsers": "tsc --module ESNext --target ES2022 --outDir ./edition-browsers --project tsconfig.json && ( test ! -d edition-browsers/source || ( mv edition-browsers/source edition-temp && rm -rf edition-browsers && mv edition-temp edition-browsers ) )", | ||
"our:compile:edition-es2016": "tsc --module commonjs --target ES2016 --outDir ./edition-es2016 --project tsconfig.json && ( test ! -d edition-es2016/source || ( mv edition-es2016/source edition-temp && rm -rf edition-es2016 && mv edition-temp edition-es2016 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2016/package.json", | ||
"our:compile:edition-es2021": "tsc --module commonjs --target ES2021 --outDir ./edition-es2021 --project tsconfig.json && ( test ! -d edition-es2021/source || ( mv edition-es2021/source edition-temp && rm -rf edition-es2021 && mv edition-temp edition-es2021 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2021/package.json", | ||
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json", | ||
"our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json", | ||
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )", | ||
"our:deploy": "printf '%s\n' 'no need for this project'", | ||
@@ -188,3 +222,3 @@ "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz", | ||
"our:meta:docs": "npm run our:meta:docs:typedoc", | ||
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source", | ||
"our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source", | ||
"our:meta:projectz": "projectz compile", | ||
@@ -205,3 +239,3 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push", | ||
"our:verify:prettier": "prettier --write .", | ||
"test": "node ./edition-es2017/test.js" | ||
"test": "node ./test.cjs" | ||
}, | ||
@@ -215,4 +249,5 @@ "eslintConfig": { | ||
"semi": false, | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
} | ||
} | ||
} |
@@ -73,4 +73,4 @@ <!-- TITLE/ --> | ||
console, | ||
'after one second as specified in our method, the result data should still be 1:', | ||
), | ||
'after one second as specified in our method, the result data should still be 1:' | ||
) | ||
) | ||
@@ -85,4 +85,4 @@ | ||
console, | ||
'after a tiny delay this will be from cache, the result data should still be 1:', | ||
), | ||
'after a tiny delay this will be from cache, the result data should still be 1:' | ||
) | ||
) | ||
@@ -99,4 +99,4 @@ | ||
console, | ||
'after one second as specified in our method, the result data should be 2, as it was our second fetch:', | ||
), | ||
'after one second as specified in our method, the result data should be 2, as it was our second fetch:' | ||
) | ||
) | ||
@@ -111,4 +111,4 @@ | ||
console, | ||
'after a tiny delay this will be from cache, the result data should still be 2:', | ||
), | ||
'after a tiny delay this will be from cache, the result data should still be 2:' | ||
) | ||
) | ||
@@ -126,4 +126,4 @@ | ||
console, | ||
'after one second as specified in our method, the result data should be 3, as it was our third fetch:', | ||
), | ||
'after one second as specified in our method, the result data should be 3, as it was our third fetch:' | ||
) | ||
) | ||
@@ -138,4 +138,4 @@ | ||
console, | ||
'after a tiny delay this will be from cache, the result data should still be 3:', | ||
), | ||
'after a tiny delay this will be from cache, the result data should still be 3:' | ||
) | ||
) | ||
@@ -160,3 +160,3 @@ }, 3000) | ||
<script type="module"> | ||
import pkg from '//cdn.skypack.dev/cachely@^5.24.0' | ||
import pkg from '//cdn.skypack.dev/cachely@^6.0.0' | ||
</script> | ||
@@ -169,3 +169,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//unpkg.com/cachely@^5.24.0' | ||
import pkg from '//unpkg.com/cachely@^6.0.0' | ||
</script> | ||
@@ -178,3 +178,3 @@ ``` | ||
<script type="module"> | ||
import pkg from '//dev.jspm.io/cachely@5.24.0' | ||
import pkg from '//dev.jspm.io/cachely@6.0.0' | ||
</script> | ||
@@ -187,7 +187,9 @@ ``` | ||
<ul><li><code>cachely/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<ul><li><code>cachely</code> aliases <code>cachely/index.cjs</code> which uses the <a href="https://github.com/bevry/editions" title="You can use the Editions Autoloader to autoload the appropriate edition for your consumers environment">Editions Autoloader</a> to automatically select the correct edition for the consumer's environment</li> | ||
<li><code>cachely/source/index.ts</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> source code with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>cachely/edition-browsers/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for web browsers with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li> | ||
<li><code>cachely</code> aliases <code>cachely/edition-es2017/index.js</code></li> | ||
<li><code>cachely/edition-es2017/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017" title="ECMAScript ES2017">ES2017</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>cachely/edition-es2017-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#8th_Edition_-_ECMAScript_2017" title="ECMAScript ES2017">ES2017</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul> | ||
<li><code>cachely/edition-es2022/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>cachely/edition-es2021/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2021 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>cachely/edition-es2016/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against <a href="https://en.wikipedia.org/wiki/ECMAScript#7th_Edition_-_ECMAScript_2016" title="ECMAScript 2016">ES2016</a> for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://nodejs.org/dist/latest-v5.x/docs/api/modules.html" title="Node/CJS Modules">Require</a> for modules</li> | ||
<li><code>cachely/edition-es2022-esm/index.js</code> is <a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a> compiled against ES2022 for <a href="https://nodejs.org" title="Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine">Node.js</a> 12 || 14 || 16 || 18 || 20 || 21 with <a href="https://babeljs.io/docs/learn-es2015/#modules" title="ECMAScript Modules">Import</a> for modules</li></ul> | ||
@@ -194,0 +196,0 @@ <!-- /INSTALL --> |
@@ -30,3 +30,3 @@ import oneday from 'oneday' | ||
throw new Error( | ||
'Cachely requires a retrieve method to be specified that returns a promise', | ||
'Cachely requires a retrieve method to be specified that returns a promise' | ||
) | ||
@@ -33,0 +33,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
"strict": true, | ||
"target": "ES2017", | ||
"target": "ES2022", | ||
"module": "ESNext" | ||
@@ -12,0 +12,0 @@ }, |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
58606
18
18
588
256
2
1
1
+ Addededitions@^6.11.0
+ Addededitions@6.21.0(transitive)
+ Addedversion-range@4.14.0(transitive)
Updatedoneday@^4.18.0