Skip to content

Commit

Permalink
Bump to 3.0 for V24.4 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
heruan authored Feb 14, 2024
1 parent 2ec9ce0 commit b3b1a40
Show file tree
Hide file tree
Showing 26 changed files with 2,412 additions and 3,086 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<name>SSO Kit</name>

<artifactId>sso-kit</artifactId>
<version>2.3-SNAPSHOT</version>
<version>3.0-SNAPSHOT</version>
<packaging>pom</packaging>

<licenses>
Expand Down
10 changes: 5 additions & 5 deletions sso-kit-client/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @hilla/sso-kit-client
# @vaadin/sso-kit-client

The **SSO Kit Client** is the client side library for the **[SSO Kit for Hilla](https://github.com/vaadin/sso-kit/tree/main/sso-kit-starter-hilla)** and depends on it.

Expand All @@ -13,25 +13,25 @@ The library consists three packages. The **[SSO Kit Client Lit](lit)**, **[SSO K
### Install the library for Hilla with Lit:

```sh
npm i @hilla/sso-kit-client-lit
npm i @vaadin/sso-kit-client-lit
```

Once installed, you can import the `SingleSignOnContext` class in your application:

```js
import ssoContext from "@hilla/sso-kit-client-lit";
import ssoContext from "@vaadin/sso-kit-client-lit";
```

### Install the library for Hilla with React:

```sh
npm i @hilla/sso-kit-client-react
npm i @vaadin/sso-kit-client-react
```

Once installed, you can import the `useSsoContext` hook in your application:

```js
import { useSsoContext } from "@hilla/sso-kit-client-react";
import { useSsoContext } from "@vaadin/sso-kit-client-react";
```

## Development
Expand Down
2 changes: 1 addition & 1 deletion sso-kit-client/core/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @hilla/sso-kit-client-core
# @vaadin/sso-kit-client-core

The **SSO Kit Client Core** is a common library of the **[SSO Kit Client Lit](../lit)** and **[SSO Kit Client React](../react)** client side libraries.

Expand Down
4 changes: 2 additions & 2 deletions sso-kit-client/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hilla/sso-kit-client-core",
"name": "@vaadin/sso-kit-client-core",
"private": true,
"version": "2.3.0",
"version": "3.0.0",
"description": "SSO Kit Client Core",
"main": "lib/index.js",
"module": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion sso-kit-client/core/test/EndpointImportError.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { expect } from "@esm-bundle/chai";
import { EndpointImportError } from "../src/index.js";

describe("@hilla/sso-kit-client-core", () => {
describe("@vaadin/sso-kit-client-core", () => {
describe("EndpointImportError", () => {
it("should be exported", async () => {
expect(EndpointImportError).to.be.ok;
Expand Down
2 changes: 1 addition & 1 deletion sso-kit-client/core/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { expect } from "@esm-bundle/chai";
import { EndpointImportError } from "../src/index.js";

describe("@hilla/sso-kit-client-core", () => {
describe("@vaadin/sso-kit-client-core", () => {
describe("Index", () => {
it("should export EndpointImportError", async () => {
expect(EndpointImportError).to.be.ok;
Expand Down
2 changes: 1 addition & 1 deletion sso-kit-client/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"npmClient": "npm",
"useWorkspaces": true,
"useNx": true,
"version": "2.3.0"
"version": "3.0.0"
}
6 changes: 3 additions & 3 deletions sso-kit-client/lit/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @hilla/sso-kit-client-lit
# @vaadin/sso-kit-client-lit

The **SSO Kit Client Lit** is the client side library for the **[SSO Kit for Hilla](https://github.com/vaadin/sso-kit/tree/main/sso-kit-starter-hilla)** and depends on it.

Expand All @@ -9,13 +9,13 @@ Getting Started with the **SSO Kit for Hilla** with Lit [documentation](https://
Install the library for Hilla with Lit:

```sh
npm i @hilla/sso-kit-client-lit
npm i @vaadin/sso-kit-client-lit
```

Once installed, you can import the `SingleSignOnContext` class in your application:

```js
import ssoContext from "@hilla/sso-kit-client-lit";
import ssoContext from "@vaadin/sso-kit-client-lit";
```

## Development
Expand Down
8 changes: 4 additions & 4 deletions sso-kit-client/lit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hilla/sso-kit-client-lit",
"version": "2.3.0",
"name": "@vaadin/sso-kit-client-lit",
"version": "3.0.0",
"description": "SSO Kit Client Lit",
"main": "lib/lit/src/index.js",
"module": "index.js",
Expand Down Expand Up @@ -55,12 +55,12 @@
"access": "public"
},
"dependencies": {
"@hilla/frontend": "2.0.5",
"@vaadin/hilla-frontend": "24.4.0-alpha4",
"@vaadin/router": "1.7.5",
"tslib": "^2.3.1"
},
"peerDependencies": {
"lit": "^2.3.0"
"lit": "^3.1.2"
},
"devDependencies": {
"@esm-bundle/chai": "^4.3.4-fix.0",
Expand Down
4 changes: 2 additions & 2 deletions sso-kit-client/lit/src/SingleSignOnContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* See <https://vaadin.com/commercial-license-and-service-terms> for the full
* license.
*/
import type { Subscription } from "@hilla/frontend";
import { logout as serverLogout } from "@hilla/frontend";
import type { Subscription } from "@vaadin/hilla-frontend";
import { logout as serverLogout } from "@vaadin/hilla-frontend";
import type {
ActionFn,
ActionResult,
Expand Down
4 changes: 2 additions & 2 deletions sso-kit-client/lit/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ declare global {
window.Vaadin = window.Vaadin || {};
window.Vaadin.registrations = window.Vaadin.registrations || [];
window.Vaadin.registrations.push({
is: "@hilla/sso-kit-client-lit",
version: "2.3.0",
is: "@vaadin/sso-kit-client-lit",
version: "3.0.0",
});

window.Vaadin.SingleSignOnData = window.Vaadin.SingleSignOnData || {
Expand Down
2 changes: 1 addition & 1 deletion sso-kit-client/lit/test/SingleSignOnContext.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { expect } from "@esm-bundle/chai";
import { SingleSignOnContext } from "../src/index.js";

describe("@hilla/sso-kit-client-lit", () => {
describe("@vaadin/sso-kit-client-lit", () => {
describe("SingleSignOnContext", () => {
it("should be exported", async () => {
expect(SingleSignOnContext).to.be.ok;
Expand Down
4 changes: 2 additions & 2 deletions sso-kit-client/lit/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { assert, expect } from "@esm-bundle/chai";
import { EndpointImportError } from "../src/index.js";

describe("@hilla/sso-kit-client-lit", () => {
describe("@vaadin/sso-kit-client-lit", () => {
describe("Index", () => {
it("should export EndpointImportError", async () => {
expect(EndpointImportError).to.be.ok;
Expand All @@ -20,7 +20,7 @@ describe("@hilla/sso-kit-client-lit", () => {
assert.isDefined(window.Vaadin);
assert.isArray(window.Vaadin.registrations);
const formRegistrations = window.Vaadin.registrations?.filter(
(r: any) => r.is === "@hilla/sso-kit-client-lit"
(r: any) => r.is === "@vaadin/sso-kit-client-lit"
);
assert.lengthOf(formRegistrations!, 1);
});
Expand Down
Loading

0 comments on commit b3b1a40

Please sign in to comment.