antonsamper / hapi-cron Goto Github PK
View Code? Open in Web Editor NEW🕰️ Cron jobs for internal hapi.js routes
Home Page: https://www.npmjs.com/package/hapi-cron
License: BSD 3-Clause "New" or "Revised" License
🕰️ Cron jobs for internal hapi.js routes
Home Page: https://www.npmjs.com/package/hapi-cron
License: BSD 3-Clause "New" or "Revised" License
6.0.4
to 6.1.1
.This version is covered by your current version range and after updating it in your project the build failed.
hoek is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 13 commits.
542939b
6.1.1
947a326
Ignore symbols in deepEqual() by default. Closes #281
27ac630
6.1.0
b3b5134
Merge pull request #281 from kanongil/symbol-support
bec8b86
Update docs
b159f54
Support symbol properties and keys in cloneWithShallow()
9fa34af
Support symbol properties for reach(). Closes #267
ea1ee6a
Support symbol properties in contain()
b6907ac
Support symbol properties in clone()
c123e61
Merge pull request #279 from Nargonath/changelog
f15fd25
Add changelog.md
56f4849
Support enumerable symbol properties in merge()
96ab1bc
Support enumerable symbol properties in deepEqual()
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
package.json
files, so that was left aloneIf you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Right now the plugin requires that the route of the CRON job is public. However for most CRON jobs the route should not be accessible to the outsite world especially since most of them are using also auth: false
. The problem is that if we declare the route as isInternal: true
the plugin would not be able to call it since the inject method does not have its option allowInternals: true
:
Line 22 in 3201cce
17.6.1
to 17.6.2
.This version is covered by your current version range and after updating it in your project the build failed.
hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Add files
prop to package.json
and include only neccesary files. Remove tests, eslint, travis etc.
4.0.6
to 4.0.7
.This version is covered by your current version range and after updating it in your project the build failed.
shot is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
v12.x
The documentation for this plugin says
onComplete - Function to run after the route has been requested. The function will contain the response from the request
but it doesn't appear that anything is being passed to the onComplete function. Is this an oversight or is there some other way I am supposed to access the res
from the request in the onComplete?
Line 24 in 855eb7e
this job always logs undefined no matter what I respond with from my route
jobs: [{
name: 'Refresh Credentials',
time: '0/10 * * * * * ',
timezone: 'Europe/London',
request: {
method: 'GET',
url: '/api/auth/credentials',
},
onComplete: (response) => {
console.log('response', response)
}
}],
1.5.0
to 1.5.1
.This version is covered by your current version range and after updating it in your project the build failed.
cron is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 4 commits.
53694c6
v1.5.1
f019f2e
Merge pull request #389 from ygunayer/numeric-utc-offset
4aa8ca9
Accept 0 as a valid UTC offset
3020d15
Add get next runs example.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
4.3.3
to 4.3.4
.This version is covered by your current version range and after updating it in your project the build failed.
@hapi/eslint-plugin-hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hey,
Could you please publish the new version to NPM please ?
Cron jobs are currently starting as soon as the the plugin is registered. This was an oversight as opposed to intentional functionality.
As suggested by @Marsup outmoded/hapijs.com#465, it would be better to start the jobs when the server actually starts onPostStart
, and equally stop them before the server stops onPreStop
.
Reference: https://hapijs.com/api#serverextevents
If you are not aware yet, Hapi v17 is making the transition from callbacks to async
/await
, as well as deprecating some other rarely used functionality. This is a breaking change that may make your plugin no longer compatible with the Hapi API.
Draft release notes can be found here: hapijs/hapi#3658
The target release date for v17 is the beginning of November.
async
/await
compatible using the v17
branch from Hapi for testing
npm link
within the Hapi reponpm link hapi
within your plugin repov17
of Hapi branch for testsnpm
. Please use a major version increment as this will be a breaking change and it would be terrible for it to sneak into current versions of Hapi.<8.0.0
.v16
will continue to be supported for as long as there exists a Node LTS actively being supported that is not compatible with v17
."Shot" is no longer being used in tests so it can be removed as a dependency.
12.1.1
to 12.2.0
.This version is covered by your current version range and after updating it in your project the build failed.
@hapi/eslint-config-hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Branch | Build failing 🚨 |
---|---|
Dependency | hapi |
Current Version | 17.5.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 7 commits.
da826dd
17.5.3
5414fb9
Mark empty string as text/html. Closes #3782
5bb5b6b
Update dependencies. Closes #3807. Closes #3808
939980c
Clear response when failed to transmit. Closes #3728
583ea0a
Apply global route options to internal routes. Closes #3792
e8f3334
Update README.md
a2c1cfa
Update README.md
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.