diff --git a/CHANGELOG.md b/CHANGELOG.md index 903544d8..a65851d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ First release. > This section will be removed after the beta phase.
> Note that semantic versioning rules are not strictly followed during this phase. +- v0.15.0: Rename modules `common`, `deferred`, `drag_observer`, `types`, `util` + to `wb_common`, `wb_deferred`, `wb_drag_observer`, `wb_types`, `wb_util` to + avoid name conflicts with other libraries. +- v0.15.0: Update TS version to ES2020 to allow using `Promise.allSettled()` and other features. +- v0.15.0: Update module format to "bundler" to allow better tree-shaking and smaller bundles. +- v0.15.0: Assume that `globalThis` is available (requires Node.js >= v12). + - v0.14.1: Fix checkbox assignment bug in wb_node.ts where the value was not being assigned to this.checkbox. - v0.14.0: Refactor sorting: @@ -117,7 +124,6 @@ First release. - v0.7.0: #69 prevent iOS browser from opening links on drop. - v0.7.0: BREAKING CHANGE: Changed syntax format for compressed formats: - - `_keyMap: {"t": "title", ...}` -> `_keyMap: {"title": "t", ...}`. - `_typeList: [...]` -> `_valueMap: {"type": [...]}`. This allows to compress values of other properties than `type`. diff --git a/docs/demo/demo-custom.js b/docs/demo/demo-custom.js index 0b526ba7..71256aeb 100644 --- a/docs/demo/demo-custom.js +++ b/docs/demo/demo-custom.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ diff --git a/docs/demo/demo-editable.js b/docs/demo/demo-editable.js index 3cdb682f..8b6f24ec 100644 --- a/docs/demo/demo-editable.js +++ b/docs/demo/demo-editable.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-fixedcol.js b/docs/demo/demo-fixedcol.js index 9b09a470..db14b7b7 100644 --- a/docs/demo/demo-fixedcol.js +++ b/docs/demo/demo-fixedcol.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-grid.js b/docs/demo/demo-grid.js index 0f77bd81..15662c29 100644 --- a/docs/demo/demo-grid.js +++ b/docs/demo/demo-grid.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 addCssImport */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-large.js b/docs/demo/demo-large.js index 4697a6ff..a4062a9f 100644 --- a/docs/demo/demo-large.js +++ b/docs/demo/demo-large.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-minimal.js b/docs/demo/demo-minimal.js index 7c24e95a..619132b0 100644 --- a/docs/demo/demo-minimal.js +++ b/docs/demo/demo-minimal.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ diff --git a/docs/demo/demo-plain.js b/docs/demo/demo-plain.js index d215fc7a..45dc27eb 100644 --- a/docs/demo/demo-plain.js +++ b/docs/demo/demo-plain.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-readonly.js b/docs/demo/demo-readonly.js index ad54a30d..1eff00c5 100644 --- a/docs/demo/demo-readonly.js +++ b/docs/demo/demo-readonly.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-select.js b/docs/demo/demo-select.js index 06dafe17..75365c4c 100644 --- a/docs/demo/demo-select.js +++ b/docs/demo/demo-select.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10, addCssImport */ /* eslint-disable no-console */ diff --git a/docs/demo/demo-welcome.js b/docs/demo/demo-welcome.js index 6ee9c67a..04e5d943 100644 --- a/docs/demo/demo-welcome.js +++ b/docs/demo/demo-welcome.js @@ -1,7 +1,7 @@ /** * Demo code for Wunderbaum (https://github.com/mar10/wunderbaum). * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). */ /* global mar10 */ diff --git a/docs/unittest/test-core-fixture1.js b/docs/unittest/test-core-fixture1.js index 1c14dba3..0409c8aa 100644 --- a/docs/unittest/test-core-fixture1.js +++ b/docs/unittest/test-core-fixture1.js @@ -1,6 +1,6 @@ /*! * Wunderbaum - Unit Test - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ diff --git a/docs/unittest/test-core.js b/docs/unittest/test-core.js index fdca2c80..1c2aa3ce 100644 --- a/docs/unittest/test-core.js +++ b/docs/unittest/test-core.js @@ -1,6 +1,6 @@ /*! * Wunderbaum - Unit Test - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ /* global mar10, QUnit */ diff --git a/src/common.ts b/src/wb_common.ts similarity index 99% rename from src/common.ts rename to src/wb_common.ts index d5d46518..621b20ec 100644 --- a/src/common.ts +++ b/src/wb_common.ts @@ -1,6 +1,6 @@ /*! * Wunderbaum - common - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ @@ -11,8 +11,8 @@ import { SourceObjectType, IconMapType, MatcherCallback, -} from "./types"; -import * as util from "./util"; +} from "./wb_types"; +import * as util from "./wb_util"; import { WunderbaumNode } from "./wb_node"; export const DEFAULT_DEBUGLEVEL = 4; // Replaced by rollup script diff --git a/src/debounce.ts b/src/wb_debounce.ts similarity index 94% rename from src/debounce.ts rename to src/wb_debounce.ts index 578c0c61..54fd5d10 100644 --- a/src/debounce.ts +++ b/src/wb_debounce.ts @@ -1,6 +1,6 @@ /*! - * Wunderbaum - debounce.ts - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Wunderbaum - wb_debounce.ts + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ /* @@ -36,27 +36,10 @@ export interface DebouncedFunction { } /* --- */ -/** Detect free variable `global` from Node.js. */ -const freeGlobal = - typeof global === "object" && - global !== null && - global.Object === Object && - global; - -/** Detect free variable `globalThis` */ -const freeGlobalThis = - typeof globalThis === "object" && - globalThis !== null && - globalThis.Object == Object && - globalThis; - -/** Detect free variable `self`. */ -const freeSelf = - typeof self === "object" && self !== null && self.Object === Object && self; - /** Used as a reference to the global object. */ const root = - freeGlobalThis || freeGlobal || freeSelf || Function("return this")(); + (typeof globalThis !== "undefined" && globalThis) || + Function("return this")(); /** * Checks if `value` is the diff --git a/src/deferred.ts b/src/wb_deferred.ts similarity index 93% rename from src/deferred.ts rename to src/wb_deferred.ts index afc89a02..c5bb77e7 100644 --- a/src/deferred.ts +++ b/src/wb_deferred.ts @@ -1,6 +1,6 @@ /*! - * Wunderbaum - deferred - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Wunderbaum - wb_deferred + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ diff --git a/src/drag_observer.ts b/src/wb_drag_observer.ts similarity index 98% rename from src/drag_observer.ts rename to src/wb_drag_observer.ts index 25c6950a..85460e81 100644 --- a/src/drag_observer.ts +++ b/src/wb_drag_observer.ts @@ -1,6 +1,6 @@ /*! - * Wunderbaum - drag_observer - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Wunderbaum - wb_drag_observer + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ diff --git a/src/wb_ext_dnd.ts b/src/wb_ext_dnd.ts index ae0c69fd..41fbe893 100644 --- a/src/wb_ext_dnd.ts +++ b/src/wb_ext_dnd.ts @@ -1,10 +1,10 @@ /*! * Wunderbaum - ext-dnd - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ -import * as util from "./util"; -import { EventCallbackType, onEvent } from "./util"; +import * as util from "./wb_util"; +import { EventCallbackType, onEvent } from "./wb_util"; import { Wunderbaum } from "./wunderbaum"; import { WunderbaumExtension } from "./wb_extension_base"; import { WunderbaumNode } from "./wb_node"; @@ -13,8 +13,8 @@ import { DropEffectType, DropRegionType, DropRegionTypeSet, -} from "./types"; -import { DebouncedFunction, throttle } from "./debounce"; +} from "./wb_types"; +import { DebouncedFunction, throttle } from "./wb_debounce"; const nodeMimeType = "application/x-wunderbaum-node"; diff --git a/src/wb_ext_edit.ts b/src/wb_ext_edit.ts index e519a4c7..ad4e933a 100644 --- a/src/wb_ext_edit.ts +++ b/src/wb_ext_edit.ts @@ -1,6 +1,6 @@ /*! * Wunderbaum - ext-edit - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ @@ -15,10 +15,10 @@ import { isPlainObject, onEvent, ValidationError, -} from "./util"; -import { debounce } from "./debounce"; +} from "./wb_util"; +import { debounce } from "./wb_debounce"; import { WunderbaumNode } from "./wb_node"; -import { EditOptionsType, InsertNodeType, WbNodeData } from "./types"; +import { EditOptionsType, InsertNodeType, WbNodeData } from "./wb_types"; // const START_MARKER = "\uFFF7"; diff --git a/src/wb_ext_filter.ts b/src/wb_ext_filter.ts index f0374c22..6412a3aa 100644 --- a/src/wb_ext_filter.ts +++ b/src/wb_ext_filter.ts @@ -1,6 +1,6 @@ /*! * Wunderbaum - ext-filter - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ @@ -11,18 +11,18 @@ import { escapeRegex, extend, onEvent, -} from "./util"; +} from "./wb_util"; import { FilterConnectType, FilterNodesOptions, FilterOptionsType, NodeFilterCallback, NodeStatusType, -} from "./types"; +} from "./wb_types"; import { Wunderbaum } from "./wunderbaum"; import { WunderbaumNode } from "./wb_node"; import { WunderbaumExtension } from "./wb_extension_base"; -import { debounce } from "./debounce"; +import { debounce } from "./wb_debounce"; const START_MARKER = "\uFFF7"; const END_MARKER = "\uFFF8"; diff --git a/src/wb_ext_grid.ts b/src/wb_ext_grid.ts index 6635c34e..01204bcb 100644 --- a/src/wb_ext_grid.ts +++ b/src/wb_ext_grid.ts @@ -1,14 +1,14 @@ /*! * Wunderbaum - ext-grid - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ import { Wunderbaum } from "./wunderbaum"; import { WunderbaumExtension } from "./wb_extension_base"; -import { DragCallbackArgType, DragObserver } from "./drag_observer"; -import { ChangeType, ColumnDefinition, GridOptionsType } from "./types"; -import { DEFAULT_MIN_COL_WIDTH } from "./common"; -import { toBool, toPixel } from "./util"; +import { DragCallbackArgType, DragObserver } from "./wb_drag_observer"; +import { ChangeType, ColumnDefinition, GridOptionsType } from "./wb_types"; +import { DEFAULT_MIN_COL_WIDTH } from "./wb_common"; +import { toBool, toPixel } from "./wb_util"; export class GridExtension extends WunderbaumExtension { protected observer: DragObserver; diff --git a/src/wb_ext_keynav.ts b/src/wb_ext_keynav.ts index 437b602a..c9aec3bf 100644 --- a/src/wb_ext_keynav.ts +++ b/src/wb_ext_keynav.ts @@ -1,11 +1,11 @@ /*! * Wunderbaum - ext-keynav - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ -import { KeynavOptionsType, NavModeEnum } from "./types"; -import { eventToString } from "./util"; +import { KeynavOptionsType, NavModeEnum } from "./wb_types"; +import { eventToString } from "./wb_util"; import { Wunderbaum } from "./wunderbaum"; import { WunderbaumNode } from "./wb_node"; import { WunderbaumExtension } from "./wb_extension_base"; diff --git a/src/wb_ext_logger.ts b/src/wb_ext_logger.ts index 0b02c530..dbf0f46d 100644 --- a/src/wb_ext_logger.ts +++ b/src/wb_ext_logger.ts @@ -1,11 +1,11 @@ /*! * Wunderbaum - ext-logger - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ -import { LoggerOptionsType } from "./types"; -import { overrideMethod } from "./util"; +import { LoggerOptionsType } from "./wb_types"; +import { overrideMethod } from "./wb_util"; import { WunderbaumExtension } from "./wb_extension_base"; import { Wunderbaum } from "./wunderbaum"; diff --git a/src/wb_extension_base.ts b/src/wb_extension_base.ts index 7f21538a..09bae09a 100644 --- a/src/wb_extension_base.ts +++ b/src/wb_extension_base.ts @@ -1,10 +1,10 @@ /*! * Wunderbaum - wb_extension_base - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ -import * as util from "./util"; +import * as util from "./wb_util"; import { DndExtension } from "./wb_ext_dnd"; import { EditExtension } from "./wb_ext_edit"; import { FilterExtension } from "./wb_ext_filter"; diff --git a/src/wb_node.ts b/src/wb_node.ts index 2595e74e..67024cad 100644 --- a/src/wb_node.ts +++ b/src/wb_node.ts @@ -1,10 +1,10 @@ /*! * Wunderbaum - wunderbaum_node - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ -import * as util from "./util"; +import * as util from "./wb_util"; import { Wunderbaum } from "./wunderbaum"; import { @@ -41,7 +41,7 @@ import { TooltipOption, TristateType, WbNodeData, -} from "./types"; +} from "./wb_types"; import { decompressSourceData, @@ -54,8 +54,8 @@ import { TEST_FILE_PATH, TEST_HTML, TITLE_SPAN_PAD_Y, -} from "./common"; -import { Deferred } from "./deferred"; +} from "./wb_common"; +import { Deferred } from "./wb_deferred"; /** WunderbaumNode properties that can be passed with source data. * (Any other source properties will be stored as `node.data.PROP`.) diff --git a/src/wb_options.ts b/src/wb_options.ts index a4aac05f..39806bb1 100644 --- a/src/wb_options.ts +++ b/src/wb_options.ts @@ -1,6 +1,6 @@ /*! * Wunderbaum - options - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ @@ -39,7 +39,7 @@ import { WbRenderEventType, WbSelectEventType, WbTreeEventType, -} from "./types"; +} from "./wb_types"; /** * Properties of {@link wunderbaum.Wunderbaum.options}. diff --git a/src/types.ts b/src/wb_types.ts similarity index 99% rename from src/types.ts rename to src/wb_types.ts index bea16e11..e0984bbd 100644 --- a/src/types.ts +++ b/src/wb_types.ts @@ -1,6 +1,6 @@ /*! * Wunderbaum - types - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ diff --git a/src/util.ts b/src/wb_util.ts similarity index 99% rename from src/util.ts rename to src/wb_util.ts index 9ead4e35..3c1052a6 100644 --- a/src/util.ts +++ b/src/wb_util.ts @@ -1,12 +1,12 @@ /*! * Wunderbaum - util - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ /** @module util */ -import { DebouncedFunction, debounce, throttle } from "./debounce"; +import { DebouncedFunction, debounce, throttle } from "./wb_debounce"; export { debounce, throttle }; diff --git a/src/wunderbaum.scss b/src/wunderbaum.scss index 51250abf..5f8d00b5 100644 --- a/src/wunderbaum.scss +++ b/src/wunderbaum.scss @@ -1,6 +1,6 @@ /*! * Wunderbaum style sheet (generated from wunderbaum.scss) - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ // @use "sass:meta"; diff --git a/src/wunderbaum.ts b/src/wunderbaum.ts index bae1fe48..a676e961 100644 --- a/src/wunderbaum.ts +++ b/src/wunderbaum.ts @@ -3,7 +3,7 @@ * * A treegrid control. * - * Copyright (c) 2021-2025, Martin Wendt (https://wwWendt.de). + * Copyright (c) 2021-2026, Martin Wendt (https://wwWendt.de). * https://github.com/mar10/wunderbaum * * Released under the MIT license. @@ -12,7 +12,7 @@ */ // import "./wunderbaum.scss"; -import * as util from "./util"; +import * as util from "./wb_util"; import { FilterExtension } from "./wb_ext_filter"; import { KeynavExtension } from "./wb_ext_keynav"; import { LoggerExtension } from "./wb_ext_logger"; @@ -61,7 +61,7 @@ import { SortByPropertyOptions, ReloadOptions, LoadLazyNodesOptions, -} from "./types"; +} from "./wb_types"; import { DEFAULT_DEBUGLEVEL, defaultIconMaps, @@ -71,12 +71,12 @@ import { DEFAULT_ROW_HEIGHT, TEST_FILE_PATH, TEST_HTML, -} from "./common"; +} from "./wb_common"; import { WunderbaumNode } from "./wb_node"; -import { Deferred } from "./deferred"; +import { Deferred } from "./wb_deferred"; import { EditExtension } from "./wb_ext_edit"; import { InitWunderbaumOptions, WunderbaumOptions } from "./wb_options"; -import { DebouncedFunction } from "./debounce"; +import { DebouncedFunction } from "./wb_debounce"; class WbSystemRoot extends WunderbaumNode { constructor(tree: Wunderbaum) { @@ -161,7 +161,7 @@ export class Wunderbaum { /** A Promise that is resolved when the tree was initialized (similar to `init(e)` event). */ public readonly ready: Promise; - /** Expose some useful methods of the util.ts module as `Wunderbaum.util`. */ + /** Expose some useful methods of the wb_util.ts module as `Wunderbaum.util`. */ public static util = util; /** A map of default iconMaps. * May be used as default, when passing partial icon definition maps: @@ -175,7 +175,7 @@ export class Wunderbaum { * ``` */ public static iconMaps = defaultIconMaps; - /** Expose some useful methods of the util.ts module as `tree._util`. */ + /** Expose some useful methods of the wb_util.ts module as `tree._util`. */ public _util = util; // --- SELECT --- diff --git a/test/unit/test-core-fixture1.js b/test/unit/test-core-fixture1.js index 1c14dba3..0409c8aa 100644 --- a/test/unit/test-core-fixture1.js +++ b/test/unit/test-core-fixture1.js @@ -1,6 +1,6 @@ /*! * Wunderbaum - Unit Test - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ diff --git a/test/unit/test-core.js b/test/unit/test-core.js index fdca2c80..1c2aa3ce 100644 --- a/test/unit/test-core.js +++ b/test/unit/test-core.js @@ -1,6 +1,6 @@ /*! * Wunderbaum - Unit Test - * Copyright (c) 2021-2025, Martin Wendt. Released under the MIT license. + * Copyright (c) 2021-2026, Martin Wendt. Released under the MIT license. * @VERSION, @DATE (https://github.com/mar10/wunderbaum) */ /* global mar10, QUnit */ diff --git a/tsconfig.json b/tsconfig.json index e26ba415..26bc9a76 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ - "target": "ES2019" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, + "target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "esnext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, // "lib": [], /* Specify library files to be included in the compilation. */ // "allowJs": true, /* Allow javascript files to be compiled. */ @@ -36,7 +36,7 @@ // "noImplicitReturns": true /* Report error when not all code paths in function return a value. */, // "noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */, /* Module Resolution Options */ - "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, + "moduleResolution": "bundler" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ @@ -72,9 +72,9 @@ "src/wunderbaum.ts", "src/wb_node.ts", "src/wb_options.ts", - "src/common.ts", - "src/types.ts", - "src/util.ts" + "src/wb_common.ts", + "src/wb_types.ts", + "src/wb_util.ts" ], "out": "docs/api", "excludePrivate": true, diff --git a/typedoc.json b/typedoc.json index c3dad146..d5adddcf 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,9 +1,9 @@ { "intentionallyNotExported": [ - "src/debounce.ts:DebouncedFunction", - "src/debounce.ts:DebounceOptions", - "src/debounce.ts:ThrottleOptions", - "src/debounce.ts:Procedure" - // "src/debounce.ts" + "src/wb_debounce.ts:DebouncedFunction", + "src/wb_debounce.ts:DebounceOptions", + "src/wb_debounce.ts:ThrottleOptions", + "src/wb_debounce.ts:Procedure" + // "src/wb_debounce.ts" ] }