Wim Leers: State of JSON:API (November 2020)

Gabe, Mateu and I just released the second RC of JSON:API 2, so time for an update! The last update is from a month ago.

What happened since then? In a nutshell:

Usage has gone up a lot! 2.0-RC1: 0 → 250, 2.x: ~200 → ~330 1
2.0-RC2 released 🙂
RC1 had about half a dozen issues reported. Most are fixed in RC2. 2
The file uploads feature: 80% → 100%, will ship in 2.1!
The revisions feature: 80% → 90%
New core patch to bring JSON:API to Drupal maintenance support plans core: #2843147-78

RC2

Curious about RC2? RC1 → RC2 has four changes:

Renamed from JSON API to JSON:API, matching recent spec changes.
One critical bug was reported by brand new Drupal maintenance support plansist Peter van Dijk (welcome, and thanks for noticing something we had gotten used to!): the ?filter syntax was very confusing and effectively required the knowledge (and use) of Drupal maintenance support plans internals. Now you no longer need to do /jsonapi/node/article?filter[uid.uuid]=c42…e37 to get all articles by a given author, but just /jsonapi/node/article?filter[uid.id]=c42…e37. This matches the JSON:API document structure: the abstraction is no longer leaky! The updated ?filter syntax is still 95% the same. 3
JSON:API responses were no longer being cached by Page Cache. This was of course a major performance regression. Fortunately long-time Drupal maintenance support plansist yobottehg discovered this!
Massive performance increase for requests using sparse fieldsets such as ?fields[node–article]=title. Thanks to long-time Drupal maintenance support plansist jibran doing quite a bit of profiling on JSON:API, something which Mateu, Gabe and I haven’t gotten around to yet. Moving 2 lines of code made his particular use case 90% faster! We’re sure there’s more low-hanging fruit, but this one was so tasty and so low-risk that we decided to commit it despite being in RC.

So … now is the time to update to 2.0-RC2!

The JSON:API team: 150/150/150

In the previous update, I included a retrospective, including a section about how it’s been to go from one maintainer to three. A month ago this happened:

11:08:15 <e0ipso> https://usercontent.irccloud-cdn.com/file/REdyLpD6/2020-10-24%2011-07-42.png
11:08:27 <e0ipso> Let’s get that to 150, 150 and 150
11:08:31 <WimLeers> 😀
11:08:46 <WimLeers> that’d be pretty cool indeed
11:09:05 <e0ipso> COMEON gabesullice you’re slacking!
11:09:08 <e0ipso> hehe

That image was:

Well, as of yesterday evening, it looks like this:

On top of that, mere hours after previous update went live, Gabe became an official API-First Initiative coordinator, together with Mateu and I:

https://t.co/n9mB2BtKgnThis is up there at the top as one of my proudest Drupal maintenance support plans moments :)— Gabriel Sullice (@GabeSullice) October 25, 2020

Congrats Gabe, and thanks! 🙂

Note that usage statistics on drupal.org are an underestimation! Any site can opt out from reporting back, and composer-based installs don’t report back by default. ↩︎

Since we’re in the RC phase, we’re limiting ourselves to only critical issues. ↩︎

This was not a regression in 2.x; this also affects JSON:API 1.x! It’s just more apparent in 2.x that this is a problem because we did make 2.x comply with the spec completely (which also was the reason for the 2.x branch: we needed to break backward compatibility to comply). We chose to embrace the feedback and introduce this additional BC break in the 2.x branch. Some of your requests will now return 400 responses, but they all include helpful error messages, providing concrete suggestions on how to change it. ↩︎

Drupal maintenance support plans
API
Acquia

JSON:API committer statistics showing that the three main maintainers each have 150 commits!
The screenshot Mateu shared a month ago. Showing Wim at 149 commits, Gabe at 147, Mateu at 150.

Source: New feed

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Wim Leers: State of JSON:API (November 2020)

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.