Skip to content

Commit

Permalink
Release v2.0.0 (#3294)
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux authored Dec 20, 2023
1 parent f75cc4c commit 80d9c4b
Show file tree
Hide file tree
Showing 15 changed files with 180 additions and 61 deletions.
24 changes: 13 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,26 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html

The following changes have been implemented but not released yet:

## [2.0.0](https://github.com/inrupt/solid-client-authn-js/releases/tag/v2.0.0) - 2023-12-20

### Breaking Changes

- Use the global `fetch` function instead of `@inrupt/universal-fetch`. This means this library now only works
with Node 18 and higher.
- Node 16 is no longer supported. The global `fetch` function is used instead of `@inrupt/universal-fetch`.
This means this library now only works with Node 18 and higher.
- The `Session` class no longer extends `EventEmitter`. Instead, it exposes an `events` attribute implementing
`EventEmitter`. We do not recommand to use `Session` instance's `events` attribute as an arbitrary events emitter,
`EventEmitter`. We do not recommend to use `Session` instance's `events` attribute as an arbitrary events emitter,
and encourage users to only use the supported events and documented API.
- `Session` methods `onLogin`, `onLogout`, `onError`, `onSessionRestore`,
`onSessionExpiration`, `onNewRefreshToken` have been removed. They are replaced by calls to `session.events.on`,
using the appropriate event name.
- `onNewRefreshToken` is no longer supported as an option to the `Session` constructor. Its usage is replaced by
calling `session.events.on` using the `EVENTS.NEW_REFRESH_TOKEN` constant as a first parameter, and a callback
handling the token as a second parameter.
- `Session` methods `onLogin`, `onLogout`, `onError`, `onSessionRestore`, `onSessionExpiration` and `onNewRefreshToken`
have been removed. They are replaced by calls to `session.events.on`, using the appropriate event name.
- `Session` constructor changes:
- the `onNewRefreshToken` parameter is no longer supported. Its usage is replaced by calling `session.events.on`
using the `EVENTS.NEW_REFRESH_TOKEN` constant as a first parameter, and a callback handling the token as a
second parameter.
- The `useEssSession` parameter is no longer supported.
- The `getClientAuthenticationWithDependencies` is no longer exported as part of the public API, and is now internal-only.
- The UMD build of `@inrupt/oidc-client-ext` is no longer available. Since this is a package only intended to be
consumed by `@inrupt/solid-client-authn-browser`, which doesn't have a UMD build, this change should have no
impact.
- The `useEssSession` parameter is no longer supported by the `Session` constructor.
- The `getClientAuthenticationWithDependencies` is no longer exported as part of the public API, and is now internal-only.

### Build system changes

Expand Down
4 changes: 2 additions & 2 deletions e2e/browser/solid-client-authn-browser/test-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test-app",
"version": "1.17.5",
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -11,7 +11,7 @@
},
"dependencies": {
"@inrupt/internal-playwright-testids": "^2.4.0",
"@inrupt/solid-client-authn-browser": "^1.17.5",
"@inrupt/solid-client-authn-browser": "^2.0.0",
"next": "^14.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
4 changes: 2 additions & 2 deletions e2e/browser/solid-ui-react/test-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "test-solid-ui",
"version": "1.17.5",
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -10,7 +10,7 @@
},
"dependencies": {
"@inrupt/internal-playwright-testids": "^2.4.0",
"@inrupt/solid-client-authn-browser": "^1.17.5",
"@inrupt/solid-client-authn-browser": "^2.0.0",
"@inrupt/solid-ui-react": "^2.9.1",
"next": "^14.0.4",
"react": "18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"useNx": true,
"version": "1.17.5"
"version": "2.0.0"
}
173 changes: 145 additions & 28 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 packages/browser/examples/single/bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "browser-in-bundle",
"private": true,
"version": "1.17.5",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/examples/single/script/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@inrupt/solid-client-authn-browser-via-script-tag-example",
"private": true,
"version": "1.17.5",
"version": "2.0.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit 80d9c4b

Please sign in to comment.