Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
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 4,034 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.