requirefresh
Advanced tools
Comparing version 3.3.0 to 4.0.0-next.1589185657.b7a5b53db00f763cef39f4ef8f3808f81276aec3
# History | ||
## v4.0.0 2020 May 11 | ||
- Updated dependencies, [base files](https://github.com/bevry/base), and [editions](https://editions.bevry.me) using [boundation](https://github.com/bevry/boundation) | ||
- Minimum required node version changed from `node: >=8` to `node: >=10` to keep up with mandatory ecosystem changes | ||
## v3.3.0 2019 December 10 | ||
@@ -4,0 +9,0 @@ |
@@ -8,3 +8,3 @@ <!-- LICENSEFILE/ --> | ||
<ul><li>Copyright © 2013+ <a href="http://bevry.me">Bevry Pty Ltd</a></li> | ||
<li>Copyright © 2011+ <a href="http://balupton.com">Benjamin Lupton</a></li></ul> | ||
<li>Copyright © 2011+ <a href="https://balupton.com">Benjamin Lupton</a></li></ul> | ||
@@ -11,0 +11,0 @@ and licensed under: |
{ | ||
"title": "Require Fresh", | ||
"name": "requirefresh", | ||
"version": "3.3.0", | ||
"version": "4.0.0-next.1589185657.b7a5b53db00f763cef39f4ef8f3808f81276aec3", | ||
"description": "Require a file without adding it into the require cache", | ||
@@ -9,6 +9,10 @@ "homepage": "https://github.com/bevry/requirefresh", | ||
"keywords": [ | ||
"cache", | ||
"esnext", | ||
"node", | ||
"require", | ||
"require-fresh", | ||
"requirefresh", | ||
"require-fresh", | ||
"cache" | ||
"typed", | ||
"types" | ||
], | ||
@@ -43,14 +47,17 @@ "badges": { | ||
"wishlistURL": "https://bevry.me/wishlist", | ||
"travisTLD": "com" | ||
"travisTLD": "com", | ||
"githubUsername": "bevry", | ||
"githubRepository": "requirefresh", | ||
"githubSlug": "bevry/requirefresh", | ||
"npmPackageName": "requirefresh" | ||
} | ||
}, | ||
"funding": "https://bevry.me/fund", | ||
"author": "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011+ Benjamin Lupton <b@lupton.cc> (http://balupton.com)", | ||
"author": "2013+ Bevry Pty Ltd <us@bevry.me> (http://bevry.me), 2011+ Benjamin Lupton <b@lupton.cc> (https://balupton.com)", | ||
"maintainers": [ | ||
"Benjamin Lupton <b@lupton.cc> (http://balupton.com)" | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)" | ||
], | ||
"contributors": [ | ||
"Benjamin Lupton <b@lupton.cc> (http://balupton.com)", | ||
"Sean Fridman <mail@seanfridman.com> (http://seanfridman.com)", | ||
"dependabot-preview[bot] (http://github.com/apps/dependabot-preview)" | ||
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)", | ||
"Sean Fridman <mail@seanfridman.com> (https://github.com/sfrdmn)" | ||
], | ||
@@ -65,7 +72,7 @@ "bugs": { | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=10" | ||
}, | ||
"editions": [ | ||
{ | ||
"description": "esnext source code with require for modules", | ||
"description": "ESNext source code for Node.js with Require for modules", | ||
"directory": "source", | ||
@@ -79,3 +86,3 @@ "entry": "index.js", | ||
"engines": { | ||
"node": "8 || 10 || 12" | ||
"node": "10 || 12 || 13 || 14" | ||
} | ||
@@ -87,15 +94,16 @@ } | ||
"devDependencies": { | ||
"assert-helpers": "^5.8.0", | ||
"eslint": "^6.7.2", | ||
"eslint-config-bevry": "^2.3.0", | ||
"eslint-config-prettier": "^6.7.0", | ||
"@bevry/update-contributors": "^1.4.0", | ||
"assert-helpers": "^6.2.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-bevry": "^3.4.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"jsdoc": "^3.6.3", | ||
"kava": "^4.4.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"jsdoc": "^3.6.4", | ||
"kava": "^5.0.0", | ||
"minami": "^1.2.3", | ||
"prettier": "^1.19.1", | ||
"projectz": "^1.16.0", | ||
"prettier": "^2.0.5", | ||
"projectz": "^2.1.0", | ||
"surge": "^0.21.3", | ||
"valid-directory": "^1.5.0" | ||
"valid-directory": "^1.6.0" | ||
}, | ||
@@ -106,6 +114,7 @@ "scripts": { | ||
"our:deploy": "echo no need for this project", | ||
"our:meta": "npm run our:meta:docs && npm run our:meta:projectz", | ||
"our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz", | ||
"our:meta:contributors": "npx @bevry/update-contributors", | ||
"our:meta:docs": "npm run our:meta:docs:jsdoc", | ||
"our:meta:docs:jsdoc": "rm -Rf ./docs && jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version", | ||
"our:meta:projectz": "projectz compile", | ||
"our:meta:docs:jsdoc": "rm -Rf ./docs && npx jsdoc --recurse --pedantic --access all --destination ./docs --package ./package.json --readme ./README.md --template ./node_modules/minami ./source && mv ./docs/$npm_package_name/$npm_package_version/* ./docs/ && rm -Rf ./docs/$npm_package_name/$npm_package_version", | ||
"our:meta:projectz": "npx projectz compile", | ||
"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", | ||
@@ -122,4 +131,4 @@ "our:release:check-changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)", | ||
"our:verify:directory": "npx valid-directory", | ||
"our:verify:eslint": "eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", | ||
"our:verify:prettier": "prettier --write ./source/**", | ||
"our:verify:eslint": "npx eslint --fix --ignore-pattern '**/*.d.ts' --ignore-pattern '**/vendor/' --ignore-pattern '**/node_modules/' --ext .mjs,.js,.jsx,.ts,.tsx ./source", | ||
"our:verify:prettier": "npx prettier --write .", | ||
"test": "node ./source/test.js" | ||
@@ -126,0 +135,0 @@ }, |
@@ -36,2 +36,25 @@ <!-- TITLE/ --> | ||
## Usage | ||
[Complete API Documentation.](http://master.requirefresh.bevry.surge.sh/docs/index.html) | ||
```javascript | ||
// Import | ||
var requireFresh = require('requirefresh') | ||
// Require the module freshly synchronously (will throw errors) | ||
try { | ||
var result = requireFresh('my-module-path') | ||
} catch (error) {} | ||
// Require the fresh module synchronously (will callback with error and result) | ||
requireFresh.safe('my-module-path', function (error, result) { | ||
if (error) { | ||
// error | ||
} else { | ||
// success | ||
} | ||
}) | ||
``` | ||
<!-- INSTALL/ --> | ||
@@ -44,3 +67,4 @@ | ||
<li>Install: <code>npm install --save requirefresh</code></li> | ||
<li>Require: <code>require('requirefresh')</code></li> | ||
<li>Import: <code>import * as pkg from ('requirefresh')</code></li> | ||
<li>Require: <code>const pkg = require('requirefresh')</code></li> | ||
</ul> | ||
@@ -53,6 +77,4 @@ | ||
<ul><li><code>requirefresh</code> aliases <code>requirefresh/source/index.js</code></li> | ||
<li><code>requirefresh/source/index.js</code> is esnext source code with require for modules</li></ul> | ||
<li><code>requirefresh/source/index.js</code> is <a href="https://en.wikipedia.org/wiki/ECMAScript#ES.Next" title="ECMAScript Next">ESNext</a> source code 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></ul> | ||
<p>Environments older than Node.js v8 may need <a href="https://babeljs.io/docs/usage/polyfill/" title="A polyfill that emulates missing ECMAScript environment features">Babel's Polyfill</a> or something similar.</p> | ||
<h3><a href="https://www.typescriptlang.org/" title="TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ">TypeScript</a></h3> | ||
@@ -73,25 +95,2 @@ | ||
## Usage | ||
[API Documentation.](http://master.requirefresh.bevry.surge.sh/docs/) | ||
```javascript | ||
// Import | ||
var requireFresh = require('requirefresh') | ||
// Require the module freshly synchronously (will throw errors) | ||
try { | ||
var result = requireFresh('my-module-path') | ||
} catch (error) {} | ||
// Require the fresh module synchronously (will callback with error and result) | ||
requireFresh.safe('my-module-path', function(error, result) { | ||
if (error) { | ||
// error | ||
} else { | ||
// success | ||
} | ||
}) | ||
``` | ||
<!-- HISTORY/ --> | ||
@@ -123,3 +122,3 @@ | ||
<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/requirefresh/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/requirefresh">view contributions</a></li></ul> | ||
<ul><li><a href="https://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/requirefresh/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/requirefresh">view contributions</a></li></ul> | ||
@@ -144,5 +143,4 @@ <h3>Sponsors</h3> | ||
<ul><li><a href="http://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/requirefresh/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/requirefresh">view contributions</a></li> | ||
<li><a href="http://seanfridman.com">Sean Fridman</a> — <a href="https://github.com/bevry/requirefresh/commits?author=sfrdmn" title="View the GitHub contributions of Sean Fridman on repository bevry/requirefresh">view contributions</a></li> | ||
<li><a href="http://github.com/apps/dependabot-preview">dependabot-preview[bot]</a> — <a href="https://github.com/bevry/requirefresh/commits?author=dependabot-preview[bot]" title="View the GitHub contributions of dependabot-preview[bot] on repository bevry/requirefresh">view contributions</a></li></ul> | ||
<ul><li><a href="https://balupton.com">Benjamin Lupton</a> — <a href="https://github.com/bevry/requirefresh/commits?author=balupton" title="View the GitHub contributions of Benjamin Lupton on repository bevry/requirefresh">view contributions</a></li> | ||
<li><a href="https://github.com/sfrdmn">Sean Fridman</a> — <a href="https://github.com/bevry/requirefresh/commits?author=sfrdmn" title="View the GitHub contributions of Sean Fridman on repository bevry/requirefresh">view contributions</a></li></ul> | ||
@@ -161,3 +159,3 @@ <a href="https://github.com/bevry/requirefresh/blob/master/CONTRIBUTING.md#files">Discover how you can contribute by heading on over to the <code>CONTRIBUTING.md</code> file.</a> | ||
<ul><li>Copyright © 2013+ <a href="http://bevry.me">Bevry Pty Ltd</a></li> | ||
<li>Copyright © 2011+ <a href="http://balupton.com">Benjamin Lupton</a></li></ul> | ||
<li>Copyright © 2011+ <a href="https://balupton.com">Benjamin Lupton</a></li></ul> | ||
@@ -164,0 +162,0 @@ and licensed under: |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
20987
14
6
1
160