Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@wework/monarch
Advanced tools
service for dynamically generating Contentful Migrations
Welcome to Monarch! We offer a node script to allow you to dynamically create Contentful migration files within your application.
Proptype | Contentful type | Notes |
---|---|---|
string | Symbol | |
number | Number | |
bool | Boolean | |
arrayOf | Array | supports Links to references or assets |
object | Link to asset | only if jsdoc @asset flag added |
shape | Link to asset | only if jsdoc @asset flag added |
instanceOf | Link to reference |
For ignoring proptypes, use jsdoc comment flag @ignore-content-prop
Read more about contentful content types.
We are not quite ready to be used in production, but in the meantime...
Test it out locally (be sure to yarn
or npm install
before doing anything):
git clone git@github.com:wework/monarch.git
To create and update the migration file, simply run the node script parseMigrate.js
with one argument:
node parseMigrate.js <path/to/component/file>
or use command script locally:
yarn parse:migrate <path/to/component/file>
Check out migrations directory and see that the file has been created. If you run this script multiple times, you will see a new file for each time it is run, name spaced with the timestamp of creation.
Once you have the files generated, you are ready to push them up to Contentful!
Make sure your Contentful space has been initialized with a Migration content model. If you need to initialize a space, use command ctf-migrate init
Once initialized, run the migrations with commands ctf-migrate up
to create the model & ctf-migrate down
to delete it.
FAQs
service for dynamically generating Contentful Migrations
The npm package @wework/monarch receives a total of 0 weekly downloads. As such, @wework/monarch popularity was classified as not popular.
We found that @wework/monarch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.