Skip to content

Commit 574a58d

Browse files
authored
Merge pull request #371 from IQSS/368-add-changelog-and-update-documents
Add CHANGELOG and Update Documents
2 parents 2796c36 + 20dc116 commit 574a58d

File tree

5 files changed

+97
-2
lines changed

5 files changed

+97
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
## Suggestions on how to test this:
1414

15-
## Is there a release notes update needed for this change?:
15+
## Is there a release notes or changelog update needed for this change?:
1616

1717
## Additional documentation:

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changelog
2+
3+
All notable changes to **Dataverse Client Javascript** are documented here.
4+
5+
This changelog follows the principles of [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and adheres to [Semantic Versioning](https://semver.org/). This document is intended for developers, contributors, and users who need to understand the technical details.
6+
7+
## [Unreleased]
8+
9+
### Added
10+
11+
### Changed
12+
13+
### Fixed
14+
15+
### Removed
16+
17+
---
18+
19+
## [v2.0.0] -- 2025-07-04
20+
21+
[Unreleased]: https://github.com/IQSS/dataverse-frontend/compare/v2.0.0...develop

CONTRIBUTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,29 @@ First of all thank you very much for your interest in contributing to this proje
1616
- Unit and integration tests pass
1717
- Unit and integration tests for new functionality/fix are added
1818
- Documentation is updated (Any new use case added or modified should be documented in the [Use Cases](./docs/useCases.md) section)
19+
- Changelog is updated with your changes in the `[Unreleased]` section of [CHANGELOG.md](./CHANGELOG.md)
20+
21+
## Maintaining the Changelog
22+
23+
When contributing to this project, it's important to document your changes in the changelog to help users and developers understand what has been added, changed, fixed, or removed between versions. The changelog helps maintain transparency about project evolution and assists users in understanding the impact of updates. We also have another changelog for design system, so for any design system changes, please include them in that changelog.
24+
25+
### When to Add Changelog Entries
26+
27+
**Every pull request should include a changelog entry**
28+
29+
Add a changelog entry for changes, including:
30+
31+
- **Added**: New features, components, or functionality
32+
- **Changed**: Changes to existing functionality, API modifications, or package updates
33+
- **Fixed**: Bug fixes and issue resolutions
34+
- **Removed**: Deprecated features or removed functionality
35+
36+
### How to Add Changelog Entries
37+
38+
1. **Add your changes to the `[Unreleased]` section** at the top of `CHANGELOG.md`
39+
2. **Categorize your changes** under the appropriate category(Added, Changed, Fixed, Removed)
40+
3. **Write clear, concise descriptions** that help users understand the impact of changes
41+
4. **Include relevant issue numbers** when applicable
1942

2043
## Code of Conduct
2144

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ For detailed information about available use cases see [Use Cases Docs](https://
4040

4141
For detailed information about usage see [Usage Docs](https://github.com/IQSS/dataverse-client-javascript/blob/main/docs/usage.md).
4242

43+
## Changelog
44+
45+
See [CHANGELOG.md](https://github.com/IQSS/dataverse-client-javascript/blob/main/CHANGELOG.md) for a detailed history of changes to this project.
46+
4347
## Contributing
4448

4549
Want to add a new use case or improve an existing one? Please check the [Contributing](https://github.com/IQSS/dataverse-client-javascript/blob/main/CONTRIBUTING.md) section.

docs/making-releases.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- [Regular or Hotfix?](#regular-or-hotfix)
55
- [Create Github Issue and Release Branch](#create-github-issue-and-release-branch)
66
- [Update the version](#update-the-version)
7+
- [Update the changelog](#update-the-changelog)
78
- [Merge "release branch" into "main"](#merge-release-branch-into-main)
89
- [Publish the Dataverse Client Javascript package](#publish-the-dataverse-client-javascript-package)
910
- [Create a Draft Release on GitHub and Tag the Version](#create-a-draft-release-on-github-and-tag-the-version)
@@ -42,6 +43,52 @@ This command will update the version in the `package.json` and `package-lock.jso
4243

4344
If everything looks good, you can push the changes to the repository.
4445

46+
## Update the changelog
47+
48+
**Note**: Contributors should have already added their changes to the `[Unreleased]` section as part of their pull requests (see [CONTRIBUTING.md](../.github/CONTRIBUTING.md#changelog-guidelines) for details).
49+
50+
Before releasing, ensure the changelog is properly prepared:
51+
52+
1. **Review the [Unreleased] section** in `CHANGELOG.md` and `packages/design-system/CHANGELOG.md`
53+
2. **Move entries from [Unreleased] to the new version section**:
54+
55+
```markdown
56+
## [vX.X.X] -- YYYY-MM-DD
57+
58+
### Added
59+
60+
- Feature descriptions from unreleased section
61+
62+
### Changed
63+
64+
- Changes from unreleased section
65+
66+
### Fixed
67+
68+
- Bug fixes from unreleased section
69+
70+
### Removed
71+
72+
- Removals from unreleased section
73+
```
74+
75+
3. **Clear the [Unreleased] section** but keep the structure:
76+
77+
```markdown
78+
## [Unreleased]
79+
80+
### Added
81+
82+
### Changed
83+
84+
### Fixed
85+
86+
### Removed
87+
```
88+
89+
4. **Update the version links** at the bottom of the changelog files
90+
5. **Commit the changelog updates** as part of the release preparation
91+
4592
## Merge "release branch" into "main"
4693

4794
Create a pull request to merge the `release` branch into the `main` branch.
@@ -96,7 +143,7 @@ Go to https://github.com/IQSS/dataverse-client-javascript/releases/new to start
96143
97144
- Under "Release title" use the same name as the tag such as v3.5.0.
98145
99-
- Add a description of the changes included in this release. You should include a link to the recently published npm version and summarize the key updates, fixes, or features.
146+
- Add a description of the changes included in this release. You should include a link to the recently published npm version and summarize the key updates, fixes, or features. You can copy the content from the corresponding version section in `CHANGELOG.md` for consistency.
100147
101148
- Click "Save draft" because we do not want to publish the release yet.
102149

0 commit comments

Comments
 (0)