
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@devgateway/upgrade-wp-customizer
Advanced tools
Upgrade and modernize your WordPress Customizer projects to use the latest block-based structure and best practices, with automated code transformations and dependency management.
@devgateway/dvz-wp-commons
and updates environment variable usage.blocks
directory.npm install -g @devgateway/upgrade-wp-customizer
# or
yarn global add @devgateway/upgrade-wp-customizer
# or
pnpm add -g @devgateway/upgrade-wp-customizer
Navigate to the root of your WordPress Customizer project and run:
npx @devgateway/upgrade-wp-customizer
--force
--force
is used).template/
updated directory) into your project, including:
blocks/
directory with a modern block setup (JS, PHP, CSS, Webpack config, etc.)index.php
and other supporting files.@devgateway/dvz-wp-commons
.process.env.BLOCKS_NS
and process.env.BLOCKS_CATEGORY
with direct imports.require
statements in blocks/index.js
or index.jsx
to ES imports.blocks
directory (supports npm, yarn, pnpm, or skip).Your project will have a new blocks/
directory with a modern block setup.
All relevant imports will use @devgateway/dvz-wp-commons
.
You may need to review and test your project to ensure everything works as expected.
If you skipped dependency installation, run the following in the blocks/
directory:
npm install
npm install @devgateway/dvz-wp-commons
# or use yarn/pnpm as appropriate
The template includes:
blocks/
index.php
– Registers the block and enqueues scripts/styles.webpack.config.js
– Webpack config for block JS.package.json
– With recommended dependencies and scripts for block development.editor.css
, style.css
– Editor and frontend styles.index.php
– Main entry for the plugin.MIT
FAQs
Upgrade a WordPress Customizer project
The npm package @devgateway/upgrade-wp-customizer receives a total of 2 weekly downloads. As such, @devgateway/upgrade-wp-customizer popularity was classified as not popular.
We found that @devgateway/upgrade-wp-customizer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.