Comparing version 0.8.14 to 0.9.0
import { type View } from './View'; | ||
import { Base } from './Base'; | ||
/** | ||
* @deprecated | ||
* This class has been deprecated since v0.9.0 and will be removed in a future release. | ||
* It shouldn’t be used in new projects. | ||
*/ | ||
export declare abstract class Enable<T extends object = object> extends Base { | ||
@@ -4,0 +9,0 @@ view: View<T>; |
@@ -51,3 +51,4 @@ "use strict"; | ||
this.view.addEventListener(_ViewEvent.ViewUnmounted, ()=>this._onUnmount()); | ||
console.warn("[DEPRECATED] Enable class has been deprecated since v0.9.0 and will be removed in a future release. It shouldn’t be used in new projects.\n" + "Stack Trace:\n", new Error().stack); | ||
} | ||
} |
@@ -16,3 +16,7 @@ function _define_property(obj, key, value) { | ||
import { ViewMounted, ViewRendered, ViewUnmounted } from "./ViewEvent"; | ||
export class Enable extends Base { | ||
/** | ||
* @deprecated | ||
* This class has been deprecated since v0.9.0 and will be removed in a future release. | ||
* It shouldn’t be used in new projects. | ||
*/ export class Enable extends Base { | ||
get data() { | ||
@@ -42,3 +46,4 @@ return this.view.data; | ||
this.view.addEventListener(ViewUnmounted, ()=>this._onUnmount()); | ||
console.warn("[DEPRECATED] Enable class has been deprecated since v0.9.0 and will be removed in a future release. It shouldn’t be used in new projects.\n" + "Stack Trace:\n", new Error().stack); | ||
} | ||
} |
import { Enable } from "./Enable"; | ||
export class ListEnable extends Enable { | ||
/** | ||
* @deprecated | ||
* This class has been deprecated since v0.9.0 and will be removed in a future release. | ||
* It shouldn’t be used in new projects. | ||
*/ export class ListEnable extends Enable { | ||
} |
import { Enable } from './Enable'; | ||
/** | ||
* @deprecated | ||
* This class has been deprecated since v0.9.0 and will be removed in a future release. | ||
* It shouldn’t be used in new projects. | ||
*/ | ||
export declare abstract class ListEnable<T> extends Enable<T[]> { | ||
} |
{ | ||
"name": "rune-ts", | ||
"version": "0.8.14", | ||
"version": "0.9.0", | ||
"description": "Rune Core Library", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -5,2 +5,7 @@ import { type View } from './View'; | ||
/** | ||
* @deprecated | ||
* This class has been deprecated since v0.9.0 and will be removed in a future release. | ||
* It shouldn’t be used in new projects. | ||
*/ | ||
export abstract class Enable<T extends object = object> extends Base { | ||
@@ -19,2 +24,8 @@ constructor(public view: View<T>) { | ||
this.view.addEventListener(ViewUnmounted, () => this._onUnmount()); | ||
console.warn( | ||
"[DEPRECATED] Enable class has been deprecated since v0.9.0 and will be removed in a future release. It shouldn’t be used in new projects.\n" + | ||
"Stack Trace:\n", | ||
new Error().stack | ||
); | ||
} | ||
@@ -21,0 +32,0 @@ |
import { Enable } from './Enable'; | ||
export abstract class ListEnable<T> extends Enable<T[]> {} | ||
/** | ||
* @deprecated | ||
* This class has been deprecated since v0.9.0 and will be removed in a future release. | ||
* It shouldn’t be used in new projects. | ||
*/ | ||
export abstract class ListEnable<T> extends Enable<T[]> { | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
294078
5339