Skip to content

Commit 59343e9

Browse files
committed
resolve merge conflicts
2 parents a490e82 + 9562e61 commit 59343e9

File tree

73 files changed

+2661
-45
lines changed

Some content is hidden

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

73 files changed

+2661
-45
lines changed

.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: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,21 @@ 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.
18+
- Templates: Added `setTemplateAsDefault` use case and repository method to support Dataverse endpoint `POST /dataverses/{id}/template/default/{templateId}`.
19+
- Templates: Added `unsetTemplateAsDefault` use case and repository method to support Dataverse endpoint `DELETE /dataverses/{id}/template/default`.
1820
- New Use Case: [Update Terms of Access](./docs/useCases.md#update-terms-of-access).
21+
- Guestbooks: Added use cases and repository support for guestbook creation, listing, and enabling/disabling.
22+
- Guestbooks: Added dataset-level guestbook assignment and removal support via `assignDatasetGuestbook` (`PUT /api/datasets/{identifier}/guestbook`) and `removeDatasetGuestbook` (`DELETE /api/datasets/{identifier}/guestbook`).
23+
- Datasets/Guestbooks: Added `guestbookId` in `getDataset` responses.
24+
- Access: Added`access` module for guestbook-at-request and download terms/guestbook submission endpoints.
25+
- New Use Case: [Get Publish Dataset Disclaimer Text](./docs/useCases.md#get-publish-dataset-disclaimer-text).
26+
- New Use Case: [Get Dataset Publish Popup Custom Text](./docs/useCases.md#get-dataset-publish-popup-custom-text).
27+
- DatasetType: Updated datasetType data model. Added two more fields: description and displayName.
1928

2029
### Changed
2130

0 commit comments

Comments
 (0)