Skip to content

Commit 63ab01b

Browse files
committed
Merge remote-tracking branch 'origin/develop' into fix/update-collection-dto-partial
2 parents cbd451b + 1dc5d8b commit 63ab01b

78 files changed

Lines changed: 2897 additions & 58 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: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,33 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
88

99
### Added
1010

11+
### Changed
12+
13+
### Fixed
14+
15+
### Removed
16+
17+
## [v2.2.0] -- 2026-04-24
18+
19+
### Added
20+
1121
- Datasets: Added `updateDatasetLicense` use case and repository method to support Dataverse endpoint `PUT /datasets/{id}/license`, for updating dataset license or custom terms.
1222
- 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.
13-
- Datasets: Added `updateDatasetLicense` use case and repository method to support Dataverse endpoint `PUT /datasets/{id}/license`, for updating dataset license or custom terms
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.
1424
- New Use Case: [Get Collections For Linking Use Case](./docs/useCases.md#get-collections-for-linking).
1525
- New Use Case: [Create a Template](./docs/useCases.md#create-a-template) under Templates.
1626
- New Use Case: [Get a Template](./docs/useCases.md#get-a-template) under Templates.
1727
- 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`.
1830
- 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.
1938

2039
### Changed
2140

@@ -34,7 +53,7 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
3453

3554
- 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.
3655

37-
[Unreleased]: https://github.com/IQSS/dataverse-client-javascript/compare/v2.1.0...develop
56+
[Unreleased]: https://github.com/IQSS/dataverse-client-javascript/compare/v2.2.0...develop
3857

3958
---
4059

0 commit comments

Comments
 (0)