
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@kdichev/migration
Advanced tools
First time setup only
yarn migrate:auto --id=<typename>
Downloads the json from type <typename> and creates corresponding migration scripts. This will work for the case when you
ops/migration/migrations
, and a new or modified file in ops/migration/contentTypes
yarn migrate:manual --id=<type>
If the automatic migration is not possible, we use this script to create a dummy migration file which you have to fill in manually, the syntax for migrations is described here. https://github.com/contentful/migration-cli#reference-documentation
yarn migrate:interfaces --id<type>
Copies editor interfaces from the 'dev' environment to target environment for a specific type. Not needed the first time a type is auto-migrated.
Here is the developer workflow for making changes to Contentful Types:
myType.editField(‘header’).changeFieldId(‘header’, ‘title’).name(‘Title’);
At the end, what should be checked into source control is the change to the data model in contentTypes and the corresponding migration(s) in the folder ops/migration/migrations
In order to apply migrations from the migrations folder to a contentful space, the following script is used. This is currently part of the release process, but might be useful for testing purposes: The yarn migrate:apply --space-id=<spaceId> --management-token=<token>
Code and folder structure:
folder | what it does |
---|---|
contentTypes | contains the authoritative version of the content types for this project |
incomingTypes | contains the JSON for the content types that have been changed since last time, and will be used for auto-generating migration scripts when possible |
migrations | contains migration scripts |
services | contains utility functions that are used from tests / production code |
utiltypes | contains utility types used from both tests / services and production code |
test | contains unit and integration tests |
tools | contains test scripts and hacks (not versioned) |
tba coming soon...
FAQs
migration scripts
We found that @kdichev/migration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.