Skip to content

Commit

Permalink
Merge pull request #98 from liip/fix/update-dependencies
Browse files Browse the repository at this point in the history
fix(): Update npm dependencies
  • Loading branch information
tschortsch authored Jan 21, 2022
2 parents 07a5d87 + c6455e0 commit 2a9d1f0
Show file tree
Hide file tree
Showing 11 changed files with 2,219 additions and 2,390 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: "Configure environment with WP 5.9"
run: |
echo -e '{\n\t"core": "https://wordpress.org/wordpress-5.9-beta2.zip"\n}' > ./.wp-env.override.json
echo -e '{\n\t"core": "https://wordpress.org/wordpress-5.9-RC3.zip"\n}' > ./.wp-env.override.json
- name: Install WordPress
run: |
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -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');
<?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');
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

4,521 changes: 2,172 additions & 2,349 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@
"url": "https://github.com/liip/bootstrap-blocks-wordpress-plugin/issues"
},
"dependencies": {
"@wordpress/block-editor": "^8.0.9",
"@wordpress/blocks": "^11.1.4",
"@wordpress/components": "^19.1.3",
"@wordpress/compose": "^5.0.6",
"@wordpress/data": "^6.1.4",
"@wordpress/editor": "^12.0.12",
"@wordpress/block-editor": "^8.0.13",
"@wordpress/blocks": "^11.1.5",
"@wordpress/components": "^19.2.0",
"@wordpress/compose": "^5.0.7",
"@wordpress/data": "^6.1.5",
"@wordpress/editor": "^12.0.16",
"@wordpress/element": "^4.0.4",
"@wordpress/hooks": "^3.2.2",
"@wordpress/i18n": "^4.2.4",
"bootstrap": "^5.1.3",
"sass": "^1.44.0"
"sass": "^1.49.0"
},
"devDependencies": {
"@cypress/snapshot": "^2.1.7",
"@wordpress/base-styles": "^4.0.4",
"@wordpress/env": "^4.1.3",
"@wordpress/scripts": "^19.2.2",
"cypress": "^9.1.1",
"@wordpress/scripts": "^19.2.3",
"cypress": "^9.3.1",
"cypress-wp-test-utils": "^0.7.1",
"cypress-xpath": "^1.6.2",
"eslint-plugin-cypress": "^2.12.1",
Expand All @@ -47,7 +47,7 @@
"dev": "npm run start",
"prebuild": "npm run check-engines",
"build": "wp-scripts build src/index.js src/settings/settings.js",
"build-theme-assets": "sass test-themes/bootstrap/styles.scss test-themes/bootstrap/styles.css",
"build-theme-assets": "sass test-themes/bootstrap/bootstrap-with-cssgrid.scss test-themes/bootstrap/bootstrap-with-cssgrid.css",
"update-translations": "scripts/translations/extract-messages.sh && scripts/translations/update-translation-files.sh && scripts/translations/compile-translation-files.sh",
"wp-env": "wp-env",
"check-engines": "wp-scripts check-engines",
Expand Down
2 changes: 1 addition & 1 deletion snapshots.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
"__version": "9.1.1",
"__version": "9.3.1",
"Row Block": {
"Row block should be available": {
"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 -->"
Expand Down

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

1 change: 1 addition & 0 deletions test-themes/bootstrap/bootstrap-with-cssgrid.css.map

Large diffs are not rendered by default.

File renamed without changes.
18 changes: 9 additions & 9 deletions test-themes/bootstrap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,19 @@ function bootstrap_theme_setup() {
function bootstrap_scripts() {
if ( \WP_Bootstrap_Blocks\Settings::is_bootstrap_5_active() ) {
if ( \WP_Bootstrap_Blocks\Settings::is_css_grid_enabled() ) {
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 );
wp_enqueue_style( 'bootstrap5-styles', get_template_directory_uri() . '/styles.css', array(), '5.1.0' );
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 );
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 );
wp_enqueue_style( 'bootstrap5-styles', get_template_directory_uri() . '/bootstrap-with-cssgrid.css', array(), '5.1.3' );
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 );
} else {
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 );
wp_enqueue_style( 'bootstrap5-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css', array(), '5.1.0' );
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 );
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 );
wp_enqueue_style( 'bootstrap5-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css', array(), '5.1.3' );
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 );
}
} else {
wp_enqueue_script( 'jQuery', 'https://code.jquery.com/jquery-3.5.1.slim.min.js', array(), '3.5.1', true );
wp_enqueue_script( 'jQuery', 'https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js', array(), '3.5.1', true );
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 );
wp_enqueue_style( 'bootstrap4-styles', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css', array(), '4.5.0' );
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 );
wp_enqueue_style( 'bootstrap4-styles', 'https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css', array(), '4.6.1' );
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 );
}
}
add_action( 'wp_enqueue_scripts', 'bootstrap_scripts' );
Expand Down
1 change: 0 additions & 1 deletion test-themes/bootstrap/styles.css.map

This file was deleted.

0 comments on commit 2a9d1f0

Please sign in to comment.