Giter Site home page Giter Site logo

Errors about akismet.js HOT 2 CLOSED

chriscoyier avatar chriscoyier commented on June 27, 2024
Errors

from akismet.js.

Comments (2)

cedx avatar cedx commented on June 27, 2024

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.

cedx avatar cedx commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.