Skip to content

Commit

Permalink
Update mermaid to 11.4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
n3f committed Dec 5, 2024
1 parent 24ddea1 commit 5f572b8
Show file tree
Hide file tree
Showing 14 changed files with 2,853 additions and 2,866 deletions.
14 changes: 7 additions & 7 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# merpress
# MerPress

Merpress is a WordPress plugin for creating diagrams and visualizations using
MerPress is a WordPress plugin for creating diagrams and visualizations using
[MermaidJS](https://mermaid.js.org).

## Setup
Expand All @@ -13,7 +13,7 @@ pnpm install && composer install

## Development

Development now uses wordpress blocks best practices (i.e. '@wordpress/scripts'
Development now uses WordPress blocks best practices (i.e. '@wordpress/scripts'
to generate the javascript). Create the production javascript with:

```sh
Expand Down Expand Up @@ -41,13 +41,13 @@ pnpm wp-scripts format <filename>
1. `pnpm update -L`
2. `composer update`
3. Build a new version of mermaid (change to the mermaid git repo directory)
1. Change the tag to the version you want: e.g. `git fetch origin [email protected].0 --depth 1`
2. `git checkout -b [email protected].0 FETCH_HEAD`
1. Change the tag to the version you want: e.g. `git fetch origin [email protected].1 --depth 1`
2. `git checkout -b [email protected].1 FETCH_HEAD`
3. `pnpm i`
4. `pnpm run -r clean`
5. `pnpm run build:mermaid`
6. `cp packages/mermaid/dist/mermaid.{,min.}js* $MERPRESS_DIR/public/`
4. Update versions (`bin/update-versions.sh`), rebuild (`pnpm build`), test, commit, create PR.
4. Update versions (`bin/update-versions.sh`), rebuild (`pnpm build`), test, commit, create PR. _(Check if the WordPress version or other README values should be updated.)_

## Setting a new version

Expand All @@ -57,7 +57,7 @@ takes 1 positional parameter (the new plugin version) and an optional one

```sh
# Update this plugin
./bin/update-versions.sh 1.1.6 11.4.0
./bin/update-versions.sh 1.1.7 11.4.1
# need to build again
pnpm build
```
Expand Down
12 changes: 6 additions & 6 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: neffff
Tags: posts, mermaid, diagrams, flowchart, block
Requires at least: 6.4
Tested up to: 6.6.2
Stable tag: 1.1.6
Tested up to: 6.7.1
Stable tag: 1.1.7
Requires PHP: 7.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -30,10 +30,10 @@ Yes. Checkout [MermaidJS](https://mermaid.js.org/intro/) for syntax reference a

== Changelog ==

= 1.1.6 =
* Update mermaid to 11.4.0.
= 1.1.7 =
* Update mermaid to 11.4.1.

== Upgrade Notice ==

= 1.1.6 =
Latest mermaid (11.4.0).
= 1.1.7 =
Latest mermaid (11.4.1).
2 changes: 1 addition & 1 deletion build/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"flow",
"graph"
],
"version": "1.1.6",
"version": "1.1.7",
"textdomain": "my-plugin",
"attributes": {
"content": {
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php declare( strict_types=1 );
return array(
'dependencies' => array( 'react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-primitives' ),
'version' => '601083c253da339eca17',
'version' => '3ac04bb5bb60a7f0bf35',
);
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions merpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: MerPress
* Plugin URI: https://github.com/n3f/merpress
* Description: Merpress lets you create diagrams and visualizations using <a href="https://mermaid-js.github.io/mermaid/">MermaidJS</a>.
* Version: 1.1.6
* Version: 1.1.7
* Requires at least: 4.6
*
* @package MerPress
Expand All @@ -16,8 +16,8 @@
exit;
}

define( 'MERMAID_PLUGIN_VERSION', '1.1.6' );
define( 'MERMAID_JS_VERSION', '11.4.0' );
define( 'MERMAID_PLUGIN_VERSION', '1.1.7' );
define( 'MERMAID_JS_VERSION', '11.4.1' );

add_action(
'init',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "merpress",
"version": "1.1.6",
"version": "1.1.7",
"description": "Merpress: add MermaidJS to WordPress",
"scripts": {
"build": "rm build/* && wp-scripts build && ./bin/tweak-built-php.sh",
Expand All @@ -24,10 +24,10 @@
"homepage": "https://github.com/n3f/merpress#readme",
"devDependencies": {
"@svgr/webpack": "^8.1.0",
"@wordpress/env": "^10.11.0",
"@wordpress/icons": "^10.11.0",
"@wordpress/scripts": "^30.4.0",
"husky": "^9.1.6",
"@wordpress/env": "^10.13.0",
"@wordpress/icons": "^10.13.0",
"@wordpress/scripts": "^30.6.0",
"husky": "^9.1.7",
"react": "^18.3.1",
"url-loader": "^4.1.1"
},
Expand Down
Loading

0 comments on commit 5f572b8

Please sign in to comment.