keycloak-js
Advanced tools
Comparing version 26.0.8 to 26.1.0
@@ -107,2 +107,3 @@ /* | ||
* Initializes the `KeycloakAuthorization` instance. | ||
* @deprecated Initialization now happens automatically, calling this method is no longer required. | ||
*/ | ||
@@ -113,2 +114,3 @@ init(): void; | ||
* A promise that resolves when the `KeycloakAuthorization` instance is initialized. | ||
* @deprecated Initialization now happens automatically, using this property is no longer required. | ||
*/ | ||
@@ -115,0 +117,0 @@ ready: Promise<void>; |
@@ -28,4 +28,12 @@ /* | ||
// TODO: Remove both `ready` property and `init` method in a future version | ||
this.ready = Promise.resolve(); | ||
this.init = () => {}; | ||
Object.defineProperty(this, 'ready', { | ||
get() { | ||
console.warn("The 'ready' property is deprecated and will be removed in a future version. Initialization now happens automatically, using this property is no longer required."); | ||
return Promise.resolve(); | ||
}, | ||
}); | ||
this.init = () => { | ||
console.warn("The 'init()' method is deprecated and will be removed in a future version. Initialization now happens automatically, calling this method is no longer required."); | ||
}; | ||
@@ -32,0 +40,0 @@ /** @type {Promise<unknown> | undefined} */ |
{ | ||
"name": "keycloak-js", | ||
"version": "26.0.8", | ||
"version": "26.1.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A client-side JavaScript OpenID Connect library that can be used to secure web applications.", |
Sorry, the diff of this file is too big to display
2507
101490
6