gutenberg-package-versions

Gutenberg Package Versions

Build Status Coverage Status CodeFactor License: GPL v2+ PHP: >=5.6 WordPress: >=5.0

This repository fetches the versions of Gutenberg automatically every day.
The version data is provided by API and composer.
You can also use these data by Wrapper.

Last updated

|Gutenberg tag|WordPress tag|Last updated at| |:—:|:—:|:—:| |v6.9.0|v5.3.0|14 November 2019 16:38:03 UTC|

https://api.wp-framework.dev/api/v1/summary.json

Data

Versions of all tags

}

### Versions of each bag
* `data/gutenberg/<TAG>.json` (for Gutenberg Plugin)
* `data/wordpress/<TAG>.json` (for WP Core)
#### Contents
- `packages`
  - `wp-<package>` => `version` 
#### Example
```json
{
  "wp-a11y": "2.0.0",
  "wp-api-fetch": "2.0.0",
  "wp-autop": "2.0.0",
  "wp-blob": "2.0.0",
  "wp-block-library": "2.0.0",
  "wp-block-serialization-default-parser": "1.0.0-rc.0",
  "wp-block-serialization-spec-parser": "1.0.1",
  "wp-blocks": "3.0.0",
  "wp-components": "3.0.0",
  "wp-compose": "2.0.0",
  "wp-core-data": "2.0.0",
  "wp-data": "2.0.0",
  "wp-date": "2.0.0",
  "wp-deprecated": "2.0.0",
  "wp-dom-ready": "2.0.0",
  "wp-dom": "2.0.0",
  "wp-editor": "3.0.0",
  "wp-element": "2.0.0",
  "wp-hooks": "2.0.0",
  "wp-html-entities": "2.0.0",
  "wp-i18n": "2.0.0",
  "wp-is-shallow-equal": "1.1.4",
  "wp-keycodes": "2.0.0",
  "wp-nux": "2.0.0",
  "wp-plugins": "2.0.0",
  "wp-redux-routine": "2.0.0",
  "wp-shortcode": "2.0.0",
  "wp-token-list": "1.0.0",
  "wp-url": "2.0.0",
  "wp-viewport": "2.0.0",
  "wp-wordcount": "2.0.0"
}

Usage

API

Endpoints

use Technote\GutenbergPackageVersionProvider;

// for Gutenberg $provider = new GutenbergPackageVersionProvider();

$provider->get_tags(); // tags

$provider->get_versions(); // array of (tag => packages) $provider->get_versions( ‘5.2.0’ ); // array of (package => version)

$provider->get_package_version( ‘5.1.0’, ‘wp-block-editor’ ); // false $provider->get_package_version( ‘5.2.0’, ‘wp-block-editor’ ); // 1.0.0-alpha.0

$provider->package_exists( ‘5.1’, ‘wp-block-editor’ ); // false $provider->package_exists( ‘5.2.0’, ‘wp-block-editor’ ); // true $provider->package_exists( ‘v5.2’, ‘wp-block-editor’ ); // true

// for WP Core $provider = new GutenbergPackageVersionProvider( ‘wp’ );

$provider->get_tags(); // tags

$provider->get_versions(); // array of (tag => packages) $provider->get_versions( ‘5.2.0’ ); // array of (package => version)

$provider->get_package_version( ‘5.1.0’, ‘wp-block-editor’ ); // false $provider->get_package_version( ‘5.2.0’, ‘wp-block-editor’ ); // 2.0.1

$provider->package_exists( ‘5.1’, ‘wp-block-editor’ ); // false $provider->package_exists( ‘5.2.0’, ‘wp-block-editor’ ); // true $provider->package_exists( ‘v5.2’, ‘wp-block-editor’ ); // true ```

Addition

Author

GitHub (Technote)
Blog