Skip to content

Commit 456232a

Browse files
authored
Merge pull request #444 from IQSS/release-2.2
new release v2.2.0
2 parents 376990b + 6737107 commit 456232a

148 files changed

Lines changed: 5688 additions & 598 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy_alpha.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,19 @@ jobs:
7171
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7272
run: |
7373
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
74+
CURRENT_PACKAGE_VERSION=$(jq -r '.version' package.json)
75+
BASE_VERSION=${CURRENT_PACKAGE_VERSION%%-alpha.*}
7476
75-
LATEST_VERSION=$(npm show @IQSS/dataverse-client-javascript versions --registry=https://npm.pkg.github.com/ --json | jq -r '.[]' | grep "^2.0.0-alpha." | sort -V | tail -n 1)
77+
LATEST_VERSION=$(npm show @iqss/dataverse-client-javascript versions --registry=https://npm.pkg.github.com/ --json | jq -r '.[]' | grep "^${BASE_VERSION}-alpha\\." | sort -V | tail -n 1)
7678
7779
if [ -z "$LATEST_VERSION" ]; then
7880
NEW_INCREMENTAL_NUMBER=1
7981
else
80-
CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/2.0.0-alpha.//')
82+
CURRENT_INCREMENTAL_NUMBER=$(echo "$LATEST_VERSION" | sed "s/^${BASE_VERSION}-alpha\\.//")
8183
NEW_INCREMENTAL_NUMBER=$((CURRENT_INCREMENTAL_NUMBER + 1))
8284
fi
8385
84-
NEW_VERSION="2.0.0-alpha.${NEW_INCREMENTAL_NUMBER}"
86+
NEW_VERSION="${BASE_VERSION}-alpha.${NEW_INCREMENTAL_NUMBER}"
8587
8688
echo "Latest version: $LATEST_VERSION"
8789
echo "New version: $NEW_VERSION"
@@ -92,7 +94,6 @@ jobs:
9294
- name: Publish package
9395
run: |
9496
echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
95-
echo "$( jq '.name = "@IQSS/dataverse-client-javascript"' package.json )" > package.json
96-
npm publish --@IQSS:registry=https://npm.pkg.github.com
97+
npm publish --@iqss:registry=https://npm.pkg.github.com
9798
env:
9899
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/deploy_pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ jobs:
7373
- name: Publish package
7474
run: |
7575
echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
76-
echo "$( jq '.name = "@IQSS/dataverse-client-javascript"' package.json )" > package.json
77-
npm publish --@IQSS:registry=https://npm.pkg.github.com
76+
npm publish --@iqss:registry=https://npm.pkg.github.com
7877
env:
7978
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,45 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
1414

1515
### Removed
1616

17-
[Unreleased]: https://github.com/IQSS/dataverse-client-javascript/compare/v2.1.0...develop
17+
## [v2.2.0] -- 2026-04-24
18+
19+
### Added
20+
21+
- Datasets: Added `updateDatasetLicense` use case and repository method to support Dataverse endpoint `PUT /datasets/{id}/license`, for updating dataset license or custom terms.
22+
- Datasets: Added `getDatasetStorageDriver` use case and repository method to support Dataverse endpoint `GET /datasets/{identifier}/storageDriver`, for retrieving dataset storage driver configuration with properties: name, type, label, directUpload, directDownload, and uploadOutOfBand.
23+
- Datasets: Added `getDatasetUploadLimits` use case and repository method to support Dataverse endpoint `GET /datasets/{id}/uploadlimits`, for retrieving remaining storage upload quotas, if present.
24+
- New Use Case: [Get Collections For Linking Use Case](./docs/useCases.md#get-collections-for-linking).
25+
- New Use Case: [Create a Template](./docs/useCases.md#create-a-template) under Templates.
26+
- New Use Case: [Get a Template](./docs/useCases.md#get-a-template) under Templates.
27+
- New Use Case: [Delete a Template](./docs/useCases.md#delete-a-template) under Templates.
28+
- Templates: Added `setTemplateAsDefault` use case and repository method to support Dataverse endpoint `POST /dataverses/{id}/template/default/{templateId}`.
29+
- Templates: Added `unsetTemplateAsDefault` use case and repository method to support Dataverse endpoint `DELETE /dataverses/{id}/template/default`.
30+
- New Use Case: [Update Terms of Access](./docs/useCases.md#update-terms-of-access).
31+
- Guestbooks: Added use cases and repository support for guestbook creation, listing, and enabling/disabling.
32+
- Guestbooks: Added dataset-level guestbook assignment and removal support via `assignDatasetGuestbook` (`PUT /api/datasets/{identifier}/guestbook`) and `removeDatasetGuestbook` (`DELETE /api/datasets/{identifier}/guestbook`).
33+
- Datasets/Guestbooks: Added `guestbookId` in `getDataset` responses.
34+
- Access: Added`access` module for guestbook-at-request and download terms/guestbook submission endpoints.
35+
- New Use Case: [Get Publish Dataset Disclaimer Text](./docs/useCases.md#get-publish-dataset-disclaimer-text).
36+
- New Use Case: [Get Dataset Publish Popup Custom Text](./docs/useCases.md#get-dataset-publish-popup-custom-text).
37+
- DatasetType: Updated datasetType data model. Added two more fields: description and displayName.
38+
39+
### Changed
40+
41+
- Add pagination query parameters to Dataset Version Summeries and File Version Summaries use cases.
42+
- Templates: Rename `CreateDatasetTemplateDTO` to `CreateTemplateDTO`.
43+
- Templates: Rename `createDatasetTemplate` repository method to `createTemplate`.
44+
- Templates: Rename `getDatasetTemplates` repository method to `getTemplatesByCollectionId`.
45+
46+
### Fixed
47+
48+
- In GetAllNotificationsByUser use case, additionalInfo field is returned as an object instead of a string.
49+
- In GetAllNotificationsByUser use case, added support for filtering unread messages and pagination.
50+
51+
### Removed
52+
53+
- Removed date fields validations in create and update dataset use cases, since validation is already handled in the backend and SPA frontend (other clients should perform client side validation also). This avoids duplicated logic and keeps the package focused on its core responsibility.
54+
55+
[Unreleased]: https://github.com/IQSS/dataverse-client-javascript/compare/v2.2.0...develop
1856

1957
---
2058

@@ -38,7 +76,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
3876

3977
- Use cases for External Tools: GetExternalTools, GetDatasetExternalToolResolved, GetFileExternalToolResolved.
4078

41-
- Use case: GetDatasetTemplates.
79+
- Use case: GetTemplatesByCollectionId.
4280

4381
- Use case: GetAvailableStandardLicenses.
4482

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,18 @@ getDataset.execute(datasetIdentifier, datasetVersion).then((dataset: Dataset) =>
3636
/* ... */
3737
```
3838

39-
For detailed information about available use cases see [Use Cases Docs](https://github.com/IQSS/dataverse-client-javascript/blob/main/docs/useCases.md).
39+
For detailed information about available use cases see [Use Cases Docs](docs/useCases.md).
4040

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

4343
## Changelog
4444

45-
See [CHANGELOG.md](https://github.com/IQSS/dataverse-client-javascript/blob/main/CHANGELOG.md) for a detailed history of changes to this project.
45+
See [CHANGELOG.md](CHANGELOG.md) for a detailed history of changes to this project.
4646

4747
## Contributing
4848

49-
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.
49+
Want to add a new use case or improve an existing one? Please check the [Contributing](CONTRIBUTING.md) section.
5050

5151
## License
5252

53-
This project is open source and available under the [MIT License](https://github.com/IQSS/dataverse-client-javascript/blob/main/LICENSE).
53+
This project is open source and available under the [MIT License](LICENSE).

0 commit comments

Comments
 (0)