![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@atomist/yaml-updater
Advanced tools
Node TypeScript
module @atomist/yaml-updater
for creating clean
changes to YAML files producing reasonable diffs from the original.
This module was developed for you with Rug
Each function is documented using TypeDoc in the source. The tests are pretty complete and a great source of examples for what functions are available and how to use them.
In general, updating a property value adds property and value if it does not exist. If the property does exist in the original YAML, its value will be updated. If its current value is an object, the value will be recursively updated, resulting in nested properties being add/updated without affecting elements of the original YAML that do not appear in the updates.
Most functions take an optional last options
parameter that is an
object. Currently the only used parameter in the options
object is
"keepArrayIndent". If the value of that property is true, the
resulting YAML will have arrays indented compared to their parent
object. If the value is false, the indentation of the array will be
at the same level as its parent object. For example, if
keepArrayIndent: true
, you will get
parent:
- first array item
- second array item
while if keepArrayIndent: false
, you will get
parent:
- first array item
- second array item
Both are valid YAML and equivalent representation of the same data structure. Note that only arrays that are updated in some way will be modified, so we recommend you base the value for this option on the format of the original YAML document you are updating.
General support questions should be discussed in the #support
channel on our community Slack team
at atomist-community.slack.com.
If you find a problem, please create an issue.
You will need to install node to build and test this project.
Command | Reason |
---|---|
npm install | to install all the required packages |
npm run lint | to run tslint against the TypeScript |
npm run compile | to compile all TypeScript into JavaScript |
npm test | to run tests and ensure everything is working |
npm run autotest | run tests continuously (you also need to run tsc -w ) |
To create a new release of the project, simply push a tag of the form
M.N.P
where M
, N
, and P
are integers that form the next
appropriate semantic version for release. The version in
the package.json is replaced by the build and is totally ignored! For
example:
$ git tag -a 1.2.
$ git push --tags
The Travis CI build (see badge at the top of this page) will publish the NPM module and automatically create a GitHub release using the tag name for the release and the comment provided on the annotated tag as the contents of the release notes.
Created by Atomist. Need Help? Join our Slack team.
FAQs
Update YAML documents while ensuring clean diffs
The npm package @atomist/yaml-updater receives a total of 4,711 weekly downloads. As such, @atomist/yaml-updater popularity was classified as popular.
We found that @atomist/yaml-updater 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.