Comments (2)
The famous Chris Coyier is looking at my project !!! I am flattered.
As you've seen, this project is currently in an unstable state :
- the npm install does not work because the project is being ported to ES modules, but I've not found the time to finish.
- the CDN build does not work because the online documentation refers to the next version... which was never released 😞
But I have good news: I decided to work on it again! Give me a few days to fix all these issues.
from akismet.js.
It took a looooooonnnnnng time (I'm a very busy person)... but all issues were finally resolved in the latest release (v14.0.0). Beware: some breaking changes were introduced.
Dropped the browser client
Akismet has never supported CORS headers, and it looks like it will not change. So using the browser client needed a complicated setup (i.e. use an intermediate proxy server). It was also a bit hard to maintain an isomorphic package.
Now, you can only use this package in a Node.js application. 😢
Using ECMAScript modules
This is a major change: to consume this package, you need a recent Node.js runtime. Either version 13, or version 12 with the --experimental-modules
flag enabled.
Changed the return type of the Client.checkComment()
method
Previously, this method returned a boolean (i.e. the comment is a spam... or not). Now, it returns a CheckResult
value.
The Akismet API sometimes includes a X-akismet-pro-tip
HTTP header telling if a comment is "pervasive" spam and can be safely discarded. The new method implementation allows to handle this scenario.
from akismet.js.
Related Issues (10)
- Akismet poor service HOT 1
- Error: `env: node\r: No such file or directory` HOT 2
- `Server.checkComment()` does not return a `Promise` HOT 1
- Server: "host" and "port" command line arguments are ignored HOT 1
- Package is not working anymore: cannot find module '@cedx/akismet' HOT 2
- logo contribution HOT 2
- es6 export / import issue? HOT 2
- Add example code on usage in documentation HOT 1
- Add support for the API version 1.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from akismet.js.