Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
UI Component library for developing DHIS2 applications. This library makes use of the d2 library for - hence the name :)
--
Latest stable version for your dhis2 release
Use @{dhis2-release-version} to get the latest version applicable to that installation
For example, if the DHIS2 release version is 2.28, then:
yarn add d2-ui@28
The git repository is located here: d2-ui github repo
Submit your change as a pull request. Pull requests need to include:
The repo includes a webpack dev server that provides a page showing most of the d2-ui components. To run these do:
yarn start
Some of the examples require a local DHIS2 instance. Most developers have their DHIS2 instance running on http://localhost:8080. If this is the case for you, then the examples should just work.
The d2-ui library is published as an npm package: https://www.npmjs.com/package/d2-ui
The d2-ui version is in the semver pattern, but the major version tracks the DHIS2 version. So, for DHIS2 version 2.28 the corresponding d2-ui version is v28.mm.pp. The reason for this is at least partly because d2-ui has a dependency on d2, which depends on the DHIS2 API version.
So we follow our own defined version conventions as follows:
The major version is upgraded at the same time the next DHIS2 is released. So when DHIS2 2.29 is released, v29.0.0 of d2-ui should be published.
Minor upgrades are used during the development cycle for breaking changes that are due to client API changes, but not due to DHIS2 API (in other words, d2) breaking changes.
Patch upgrades are for bug fixes and small implementations that are not breaking changes.
After your pull request with functional changes has been merged to master, switch to the master branch locally and pull to get all the latest changes. The version upgrade will be done directly on the master branch:
git checkout master
git pull
Next use yarn to upgrade the npm package version
yarn version
This is interactive and you will input the new version (remember, minor or patch during development, major only when the new DHIS2 version is released)
After you have indicated the version, yarn will do two things:
Push these 2 things to the remote:
git push
git push --tags
You are done! Travis will detect the new git tag and start a deploy build that publishes the new npm version. You can follow the build on https://travis-ci.org
FAQs
d2-ui
The npm package d2-ui receives a total of 1,391 weekly downloads. As such, d2-ui popularity was classified as popular.
We found that d2-ui 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.