chrisfosterelli / akismet-api Goto Github PK
View Code? Open in Web Editor NEWNodejs bindings to the Akismet (https://akismet.com) spam detection service
License: MIT License
Nodejs bindings to the Akismet (https://akismet.com) spam detection service
License: MIT License
Node 4 has come out, I'd like to add official support for it. I'd also like to look at what else Travis supports for node versions and see about running tests on those.
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 🌴
Dependencies are currently out of date
Because why not?
Non-SSL references to the akismet website should be SSL.
Branch | Build failing 🚨 |
---|---|
Dependency | nock |
Current Version | 9.0.22 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
nock 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.
Find changes for versions before 9.0.23 at https://github.com/node-nock/nock/blob/bd387365ff8e6df731cf5a35cc92560346826ec5/CHANGELOG.md
The new version differs by 7 commits.
f13add9
chore(travis): semantic-release setup
909dbce
chore(package): semantic-release
e4b0958
test: intercept test fix
62e7566
Fix matchStringOrRegexp TypeError on undefined (#998)
4772df5
allowUnmocked causes no requests to match when query is specified (#955)
ea2fe9f
fix: include path
in the matching log output (#996)
6d9704d
chore(CHANGELOG): 9.0.22
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 🌴
Hi,
first thank you for your great job on this client api.
Then, do you think it is possible to add support for "honeypot_field_name" & "hidden_honeypot_field", it is the only option which is present in the api Akismet and which is not present in your client. This could be useful to allow additional filtering.
Thank you in advance.
I recently encountered an issue within a Next.js application after installing akismet-api version 6.0.0. When I attempt to use the Akismet client in my Next.js route handler, I receive the following error: TypeError: hexoid is not a function.
Environment
Node.js Version: 18.7.0
Next.js Version: 14.3.2
Akismet API Version: 6.0.0
In the "Promises and Callbacks" section, I mention that the rest of the README will use callbacks. We should provide a Promise-based version of the documentation that uses promises in the examples, and link to that README version from the "Promises and Callbacks" section.
The user agent is a hardcoded version string. I'd like to get this from the package.json
file instead.
Dependencies are out of date, this should be a quick fix to update.
I'd like to add explicit support for using akismet-api in the browser
David DM is no longer available
This would be a nice section to have
I'd like to look at moving away from superagent and toward request, as request seems to be the more defacto standard nowadays. I'll have to code it up and see if it's better, worse, or the same for readability and usability.
3.5.3
to 3.5.4
.This version is covered by your current version range and after updating it in your project the build failed.
bluebird 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 6 commits.
e0222e3
Release v3.5.4
4b9fa33
missing --expose-gc
flag (#1586)
63b15da
docs: improve and compare Promise.each and Promise.mapSeries (#1565)
9dcefe2
.md syntax fix for coming-from-other-languages.md (#1584)
b97c0d2
added proper version check supporting VSCode (#1576)
499cf8e
Update jsdelivr url in docs (#1571)
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 🌴
We can get a dev akismet key and use some of the hardcoded test behaviours to make sure that everything works end-to-end, which'll help augment the unit tests.
Could not find a declaration file for module 'akismet-api'. '.../node_modules/akismet-api/lib/akismet.js' implicitly has an 'any' type.
Try npm install @types/akismet-api
if it exists or add a new declaration (.d.ts) file containing declare module 'akismet-api';
ts(7016)
As well as checkSpam, submitHam and submitSpam support the property is_test so you don't need to worry about make fake submits when you are testing
Akismet is upgrading the requests anyway, but this will reduce request time and improve security.
Since this project no longer supports node 0.8, we can remove the setimmediate shim.
Branch | Build failing 🚨 |
---|---|
Dependency | superagent |
Current Version | 3.6.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
superagent is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪
The new version differs by 9 commits.
1930bd4
Work around mime-types flipflopping about XML mime type
1e255c2
Update node versions in CI
96f3df8
Update dependencies
0e85681
docs(piping): add note about chunked transfer encoding
0274b7b
Syntax fix
7326cc0
Field/attach docs
c5be156
Upgrading instructions
f059135
ES6 in readme examples
cbf8569
Update dependency
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
Our tests should test both the promise and callback interfaces to the library.
Although I'm pretty sure we can trust bluebird to do it's job properly, we may be accidentally not passing something in a promise-y way and it'd be good to have explicit tests for how that's consumed in promise land.
Let's keep it modern, would be good to have this in ES6 using Babel.
The is_test option (https://akismet.com/development/api/#comment-check) would be very handy, especially when running integration tests on my application.
Appears easy enough to implement but would be willing to submit a pull request if required :)
All of the functions take fields like this:
user_ip : '123.123.123.123', // Required!
user_agent : 'MyUserAgent 1.0 Webkit', // Required!
referrer : 'http://google.com', // Required!
permalink : 'http://myblog.com/myPost',
comment_type : 'comment',
comment_author : 'John Smith',
comment_author_email : '[email protected]',
comment_author_url : 'http://johnsblog.com',
comment_content : 'Very nice blog! Check out mine!'
It would be very nice to change these to proper JS style attributes (Ex: userIp
), potentially with nested objects like comment
.
This would be a breaking change and create a new major version
Exists in node 13.x, coming to LTS in 14.x soon.
For import
to work with named imports the module specifically has to support it, or else users can only import as the exported object as a default export.
Akismet no longer requires this field, so we should update our docs to match.
Node 8 is out \o/ Need to add travis CI tests
Legal license should now be for Two Story Robot Labs Inc.
It looks like Nock no longer supports node 0.8, so we can't upgrade our nock dependency until we let go of node 0.8 as well.
0.8 is quite old, and right now we only "kinda" support it since we use the caret format. Given that it is EOL I'm more inclined to remove 0.8 support and update nock to the latest version.
Branch | Build failing 🚨 |
---|---|
Dependency | mocha |
Current Version | 3.3.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As mocha is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
Mocha is now moving to a quicker release schedule: when non-breaking changes are merged, a release should happen that week.
This week's highlights:
allowUncaught
added to commandline as --allow-uncaught
(and bugfixed)--no-warnings
and --trace-warnings
flags (@sonicdoe)The new version differs by 9 commits0.
7554b31
Add Changelog for v3.4.0
9f7f7ed
Add --trace-warnings
flag
92561c8
Add --no-warnings
flag
ceee976
lint test/integration/fixtures/simple-reporter.js
dcfc094
Revert "use semistandard
directly"
93392dd
no special case for macOS running Karma locally
4d1d91d
--allow-uncaught cli option
fb1e083
fix allowUncaught in browser
4ed3fc5
Add license report and scan status
false
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
It would be great to have promise support in addition to traditional callback support
The lowest version we support is Node 8 now, which means native Promise
support is pretty good. We might not need to use bluebird
anymore. Bluebird is great but this could clear up a dependency which is always a perk!
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.