Skip to content

Commit 2a9d1f0

Browse files
authored
Merge pull request #98 from liip/fix/update-dependencies
fix(): Update npm dependencies
2 parents 07a5d87 + c6455e0 commit 2a9d1f0

File tree

11 files changed

+2219
-2390
lines changed

11 files changed

+2219
-2390
lines changed

.github/workflows/lint-test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
8787
- name: "Configure environment with WP 5.9"
8888
run: |
89-
echo -e '{\n\t"core": "https://wordpress.org/wordpress-5.9-beta2.zip"\n}' > ./.wp-env.override.json
89+
echo -e '{\n\t"core": "https://wordpress.org/wordpress-5.9-RC3.zip"\n}' > ./.wp-env.override.json
9090
9191
- name: Install WordPress
9292
run: |

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => 'aa58ec5c97ee0f3346b69c834ff57d5e');
1+
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '33f83f64c509950d43b63849629d0712');

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2172 additions & 2349 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@
1818
"url": "https://github.com/liip/bootstrap-blocks-wordpress-plugin/issues"
1919
},
2020
"dependencies": {
21-
"@wordpress/block-editor": "^8.0.9",
22-
"@wordpress/blocks": "^11.1.4",
23-
"@wordpress/components": "^19.1.3",
24-
"@wordpress/compose": "^5.0.6",
25-
"@wordpress/data": "^6.1.4",
26-
"@wordpress/editor": "^12.0.12",
21+
"@wordpress/block-editor": "^8.0.13",
22+
"@wordpress/blocks": "^11.1.5",
23+
"@wordpress/components": "^19.2.0",
24+
"@wordpress/compose": "^5.0.7",
25+
"@wordpress/data": "^6.1.5",
26+
"@wordpress/editor": "^12.0.16",
2727
"@wordpress/element": "^4.0.4",
2828
"@wordpress/hooks": "^3.2.2",
2929
"@wordpress/i18n": "^4.2.4",
3030
"bootstrap": "^5.1.3",
31-
"sass": "^1.44.0"
31+
"sass": "^1.49.0"
3232
},
3333
"devDependencies": {
3434
"@cypress/snapshot": "^2.1.7",
3535
"@wordpress/base-styles": "^4.0.4",
3636
"@wordpress/env": "^4.1.3",
37-
"@wordpress/scripts": "^19.2.2",
38-
"cypress": "^9.1.1",
37+
"@wordpress/scripts": "^19.2.3",
38+
"cypress": "^9.3.1",
3939
"cypress-wp-test-utils": "^0.7.1",
4040
"cypress-xpath": "^1.6.2",
4141
"eslint-plugin-cypress": "^2.12.1",
@@ -47,7 +47,7 @@
4747
"dev": "npm run start",
4848
"prebuild": "npm run check-engines",
4949
"build": "wp-scripts build src/index.js src/settings/settings.js",
50-
"build-theme-assets": "sass test-themes/bootstrap/styles.scss test-themes/bootstrap/styles.css",
50+
"build-theme-assets": "sass test-themes/bootstrap/bootstrap-with-cssgrid.scss test-themes/bootstrap/bootstrap-with-cssgrid.css",
5151
"update-translations": "scripts/translations/extract-messages.sh && scripts/translations/update-translation-files.sh && scripts/translations/compile-translation-files.sh",
5252
"wp-env": "wp-env",
5353
"check-engines": "wp-scripts check-engines",

snapshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
"__version": "9.1.1",
2+
"__version": "9.3.1",
33
"Row Block": {
44
"Row block should be available": {
55
"1": "<!-- wp:wp-bootstrap-blocks/row -->\n<!-- wp:wp-bootstrap-blocks/column {\"sizeMd\":6} /-->\n\n<!-- wp:wp-bootstrap-blocks/column {\"sizeMd\":6} /-->\n<!-- /wp:wp-bootstrap-blocks/row -->"

test-themes/bootstrap/styles.css renamed to test-themes/bootstrap/bootstrap-with-cssgrid.css

Lines changed: 23 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-themes/bootstrap/bootstrap-with-cssgrid.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-themes/bootstrap/functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ function bootstrap_theme_setup() {
4646
function bootstrap_scripts() {
4747
if ( \WP_Bootstrap_Blocks\Settings::is_bootstrap_5_active() ) {
4848
if ( \WP_Bootstrap_Blocks\Settings::is_css_grid_enabled() ) {
49-
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js', array(), '2.9.2', true );
50-
wp_enqueue_style( 'bootstrap5-styles', get_template_directory_uri() . '/styles.css', array(), '5.1.0' );
51-
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.0', true );
49+
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js', array(), '2.10.2', true );
50+
wp_enqueue_style( 'bootstrap5-styles', get_template_directory_uri() . '/bootstrap-with-cssgrid.css', array(), '5.1.3' );
51+
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.3', true );
5252
} else {
53-
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js', array(), '2.9.2', true );
54-
wp_enqueue_style( 'bootstrap5-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css', array(), '5.1.0' );
55-
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.0', true );
53+
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js', array(), '2.10.2', true );
54+
wp_enqueue_style( 'bootstrap5-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css', array(), '5.1.3' );
55+
wp_enqueue_script( 'bootstrap5-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js', array( 'popper.js' ), '5.1.3', true );
5656
}
5757
} else {
58-
wp_enqueue_script( 'jQuery', 'https://code.jquery.com/jquery-3.5.1.slim.min.js', array(), '3.5.1', true );
58+
wp_enqueue_script( 'jQuery', 'https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js', array(), '3.5.1', true );
5959
wp_enqueue_script( 'popper.js', 'https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js', array(), '1.16.1', true );
60-
wp_enqueue_style( 'bootstrap4-styles', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css', array(), '4.5.0' );
61-
wp_enqueue_script( 'bootstrap4-scripts', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js', array( 'jQuery', 'popper.js' ), '4.5.0', true );
60+
wp_enqueue_style( 'bootstrap4-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css', array(), '4.6.1' );
61+
wp_enqueue_script( 'bootstrap4-scripts', 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.min.js', array( 'jQuery', 'popper.js' ), '4.6.1', true );
6262
}
6363
}
6464
add_action( 'wp_enqueue_scripts', 'bootstrap_scripts' );

0 commit comments

Comments
 (0)