Skip to content

Commit 8d8258b

Browse files
committed
resolve merge conflicts
2 parents 651c24e + 9562e61 commit 8d8258b

File tree

64 files changed

+2589
-24
lines changed

Some content is hidden

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

64 files changed

+2589
-24
lines changed

.github/workflows/deploy_alpha.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,19 @@ jobs:
7272
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7373
run: |
7474
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
75+
CURRENT_PACKAGE_VERSION=$(jq -r '.version' package.json)
76+
BASE_VERSION=${CURRENT_PACKAGE_VERSION%%-alpha.*}
7577
76-
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)
78+
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)
7779
7880
if [ -z "$LATEST_VERSION" ]; then
7981
NEW_INCREMENTAL_NUMBER=1
8082
else
81-
CURRENT_INCREMENTAL_NUMBER=$(echo $LATEST_VERSION | sed 's/2.0.0-alpha.//')
83+
CURRENT_INCREMENTAL_NUMBER=$(echo "$LATEST_VERSION" | sed "s/^${BASE_VERSION}-alpha\\.//")
8284
NEW_INCREMENTAL_NUMBER=$((CURRENT_INCREMENTAL_NUMBER + 1))
8385
fi
8486
85-
NEW_VERSION="2.0.0-alpha.${NEW_INCREMENTAL_NUMBER}"
87+
NEW_VERSION="${BASE_VERSION}-alpha.${NEW_INCREMENTAL_NUMBER}"
8688
8789
echo "Latest version: $LATEST_VERSION"
8890
echo "New version: $NEW_VERSION"
@@ -93,7 +95,6 @@ jobs:
9395
- name: Publish package
9496
run: |
9597
echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
96-
echo "$( jq '.name = "@IQSS/dataverse-client-javascript"' package.json )" > package.json
97-
npm publish --@IQSS:registry=https://npm.pkg.github.com
98+
npm publish --@iqss:registry=https://npm.pkg.github.com
9899
env:
99100
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
@@ -74,7 +74,6 @@ jobs:
7474
- name: Publish package
7575
run: |
7676
echo "$(jq '.publishConfig.registry = "https://npm.pkg.github.com"' package.json)" > package.json
77-
echo "$( jq '.name = "@IQSS/dataverse-client-javascript"' package.json )" > package.json
78-
npm publish --@IQSS:registry=https://npm.pkg.github.com
77+
npm publish --@iqss:registry=https://npm.pkg.github.com
7978
env:
8079
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,23 @@ This changelog follows the principles of [Keep a Changelog](https://keepachangel
1010

1111
- Datasets: Added `updateDatasetLicense` use case and repository method to support Dataverse endpoint `PUT /datasets/{id}/license`, for updating dataset license or custom terms.
1212
- 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
13+
- Datasets: Added `getDatasetUploadLimits` use case and repository method to support Dataverse endpoint `GET /datasets/{id}/uploadlimits`, for retrieving remaining storage upload quotas, if present.
1414
- New Use Case: [Get Collections For Linking Use Case](./docs/useCases.md#get-collections-for-linking).
1515
- New Use Case: [Create a Template](./docs/useCases.md#create-a-template) under Templates.
1616
- New Use Case: [Get a Template](./docs/useCases.md#get-a-template) under Templates.
1717
- New Use Case: [Delete a Template](./docs/useCases.md#delete-a-template) under Templates.
1818
- New Use Case: [Update Template Metadata](./docs/useCases.md#update-template-metadata) under Templates.
1919
- New Use Case: [Update Template License Terms](./docs/useCases.md#update-template-license-terms) under Templates.
2020
- New Use Case: [Update Template Terms Of Access](./docs/useCases.md#update-template-terms-of-access) under Templates.
21+
- Templates: Added `setTemplateAsDefault` use case and repository method to support Dataverse endpoint `POST /dataverses/{id}/template/default/{templateId}`.
22+
- Templates: Added `unsetTemplateAsDefault` use case and repository method to support Dataverse endpoint `DELETE /dataverses/{id}/template/default`.
2123
- New Use Case: [Update Terms of Access](./docs/useCases.md#update-terms-of-access).
24+
- Guestbooks: Added use cases and repository support for guestbook creation, listing, and enabling/disabling.
25+
- Guestbooks: Added dataset-level guestbook assignment and removal support via `assignDatasetGuestbook` (`PUT /api/datasets/{identifier}/guestbook`) and `removeDatasetGuestbook` (`DELETE /api/datasets/{identifier}/guestbook`).
26+
- Datasets/Guestbooks: Added `guestbookId` in `getDataset` responses.
27+
- Access: Added`access` module for guestbook-at-request and download terms/guestbook submission endpoints.
28+
- New Use Case: [Get Publish Dataset Disclaimer Text](./docs/useCases.md#get-publish-dataset-disclaimer-text).
29+
- New Use Case: [Get Dataset Publish Popup Custom Text](./docs/useCases.md#get-dataset-publish-popup-custom-text).
2230
- DatasetType: Updated datasetType data model. Added two more fields: description and displayName.
2331

2432
### Changed

0 commit comments

Comments
 (0)