Skip to content

Commit

Permalink
release: prepare v2.1.0 (#460)
Browse files Browse the repository at this point in the history
* Update `@since` annotations
* Updated CHANGELOG
* 2.1.0
  • Loading branch information
NSeydoux authored Jan 9, 2023
1 parent 486edc5 commit 814b4f4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html

### New Features

-

## [2.1.0](https://github.com/inrupt/solid-client-access-grants-js/releases/tag/v2.1.0) - 2023-01-06

### New Features

- Added the `createContainerInContainer` method.
- Added `saveSolidDatasetInContainer` method.
- Added the `updateAcr` flag to the options that can be included when calling
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@inrupt/solid-client-access-grants",
"description": "A library for managing access grants in Solid",
"version": "2.0.0",
"version": "2.1.0",
"license": "MIT",
"scripts": {
"build": "rollup --config rollup.config.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/gConsent/type/AccessBaseOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import type { UrlString } from "@inrupt/solid-client";
*/
export interface AccessBaseOptions {
/**
* @since unreleased
* @since 2.1.0
*/
updateAcr?: boolean;
fetch?: typeof fetch;
Expand Down
4 changes: 3 additions & 1 deletion src/odrl/type/AccessGrant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ function isOdrlPermission(permission: unknown): permission is OdrlPermission {
* });
* ```
*
* @hidden This function is still experimental, and could be subject to breaking
* changes in non-major releases.
* @param vc A Verifiable Credential
* @returns true if the VC is a valid ODRL-based Access Grant
* @since unreleased
* @since 2.1.0
*/
export function isCredentialAccessGrantOdrl(
vc: VerifiableCredential
Expand Down
2 changes: 1 addition & 1 deletion src/resource/createContainerInContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import { SaveInContainerOptions } from "../type/SaveInContainerOptions";
* compatible with the browser-native [fetch API](https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/fetch#parameters).
* @returns A promise that resolves to a SolidDataset with ResourceInfo if
* successful, and that rejects otherwise.
* @since unreleased
* @since 2.1.0
*/

export async function createContainerInContainer(
Expand Down
2 changes: 1 addition & 1 deletion src/resource/saveSolidDatasetInContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import { SaveInContainerOptions } from "../type/SaveInContainerOptions";
* @param accessGrant The Access Grant that would allow the Agent/Application to perform this operation.
* @param options Optional parameter `options.fetch`: An alternative `fetch` function to make the HTTP request, compatible with the browser-native [fetch API](https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/fetch#parameters).
* @returns A Promise resolving to a SolidDataset containing the saved data. The Promise rejects if the save failed.
* @since unreleased
* @since 2.1.0
*/

export async function saveSolidDatasetInContainer(
Expand Down
2 changes: 1 addition & 1 deletion src/type/SaveInContainerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { FetchOptions } from "./FetchOptions";
* does not already have a resource/container in it with that name, it will
* use the slug suggestion as the name.
*
* @since unreleased
* @since 2.1.0
*/
// TODO: This should come from @inrupt/solid-client
export interface SaveInContainerOptions extends FetchOptions {
Expand Down

1 comment on commit 814b4f4

@vercel
Copy link

@vercel vercel bot commented on 814b4f4 Jan 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.