Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update dependencies to avoid conflict in WP 6.6 #457

Merged
merged 19 commits into from
Aug 2, 2024

Conversation

dkoo
Copy link
Contributor

@dkoo dkoo commented Jun 14, 2024

All Submissions:

Changes proposed in this Pull Request:

Refactoring required for changes in Automattic/newspack-scripts#209. Note that this PR will not pass CI tests and should NOT be merged until Automattic/newspack-scripts#209 is released as an NPM package, so this repo can install it as a dependency.

How to test the changes in this Pull Request:

Follow instructions in Automattic/newspack-scripts#209.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

@chickenn00dle chickenn00dle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @dkoo,

Aside from the lint error I commented about, I'm also seeing the listing block is not available when 6.5.4 is installed similar to the blocks PR:

Screenshot 2024-06-21 at 12 08 10

Also similar to the blocks PR, when the block is added to a page with 6.6 installed, when I downgrade to 6.5.4, I see the following error:

Screenshot 2024-06-21 at 12 02 43

"start": "npm ci && npm run watch",
"watch": "newspack-scripts wp-scripts start",
"test": "echo 'No JS unit tests in this repository.'",
"lint": "npm run lint:scss && npm run lint:js",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running into this error when running this:

Screenshot 2024-06-21 at 12 05 47

Likely related to this comment in slack: p1718927940733569/1718662684.817909-slack-C015W6BES8J

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stylelint errors should be fixed as of newspack-scripts@5.6.0-alpha.7

@dkoo dkoo changed the base branch from master to trunk July 2, 2024 18:48
@dkoo dkoo dismissed chickenn00dle’s stale review August 2, 2024 20:28

Only broken in WP 5.5.*

@dkoo dkoo merged commit 703e281 into trunk Aug 2, 2024
7 checks passed
@dkoo dkoo deleted the chore/update-dependencies branch August 2, 2024 20:35
@dkoo dkoo restored the chore/update-dependencies branch August 2, 2024 20:36
@dkoo dkoo deleted the chore/update-dependencies branch August 2, 2024 20:36
matticbot pushed a commit that referenced this pull request Aug 2, 2024
# [3.0.0-alpha.1](v2.16.0...v3.0.0-alpha.1) (2024-08-02)

### Bug Fixes

* update dependencies to support `@wordpress/scripts` ([#457](#457)) ([703e281](703e281))

### BREAKING CHANGES

* Updates dependencies for compatibility with WordPress 6.6.*, but breaks JS in WordPress 6.5.* and below. If you need support for WP 6.5.*, please do not upgrade to this new major version.

* chore: refactor for newspack-scripts dependency updates

* chore: update webpack config

* refactor: use proxy script for eslint and stylelint scripts

* fix: peer dependencies

* chore: update newspack-scripts to v5.6.0-alpha.3

* chore: remove ajv dependency

* chore: add .stylelintrc.js

* chore: update newspack-scripts to v5.6.0-alpha.4

* fix: add missing Prettier config files

* chore: update newspack-scripts to 5.6.0-alpha.5

* chore: update newspack-scripts to v5.6.0-alpha.7

* chore: update newspack-scripts to v5.6.0-alpha.8

* chore: add NPM scripts for PHP

* fix: phpcs

* fix: phpcs errors

* chore: update newspack-components to v3.0.0

* chore: bump newspack-scripts to v5.5.2
@matticbot
Copy link
Contributor

🎉 This PR is included in version 3.0.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Aug 13, 2024
# [3.0.0](v2.16.0...v3.0.0) (2024-08-13)

### Bug Fixes

* update dependencies to support `@wordpress/scripts` ([#457](#457)) ([703e281](703e281))

### BREAKING CHANGES

* Updates dependencies for compatibility with WordPress 6.6.*, but breaks JS in WordPress 6.5.* and below. If you need support for WP 6.5.*, please do not upgrade to this new major version.

* chore: refactor for newspack-scripts dependency updates

* chore: update webpack config

* refactor: use proxy script for eslint and stylelint scripts

* fix: peer dependencies

* chore: update newspack-scripts to v5.6.0-alpha.3

* chore: remove ajv dependency

* chore: add .stylelintrc.js

* chore: update newspack-scripts to v5.6.0-alpha.4

* fix: add missing Prettier config files

* chore: update newspack-scripts to 5.6.0-alpha.5

* chore: update newspack-scripts to v5.6.0-alpha.7

* chore: update newspack-scripts to v5.6.0-alpha.8

* chore: add NPM scripts for PHP

* fix: phpcs

* fix: phpcs errors

* chore: update newspack-components to v3.0.0

* chore: bump newspack-scripts to v5.5.2
@matticbot
Copy link
Contributor

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants