ultimatedarktower 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [2.1.3] - 2026-02-19
8
+
9
+ ### Fixed
10
+
11
+ - **`@stoprocent/noble` not loading in ESM build** — In Node.js ESM contexts, `require` is not defined, causing esbuild's `__require` shim to silently fail and leave `noble` as `undefined`. The ESM bundle now injects `import{createRequire}from'module';const require=createRequire(import.meta.url);` as a banner so `@stoprocent/noble` loads correctly via CJS `require` within the ESM module.
12
+
7
13
  ## [2.1.2] - 2026-02-19
8
14
 
9
15
  ### Fixed
@@ -79,6 +85,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
79
85
  - Tower Game ("The Tower's Challenge") example web app
80
86
  - Complete API reference documentation
81
87
 
88
+ [2.1.3]: https://github.com/ChessMess/UltimateDarkTower/compare/v2.1.2...v2.1.3
82
89
  [2.1.2]: https://github.com/ChessMess/UltimateDarkTower/compare/v2.1.1...v2.1.2
83
90
  [2.1.1]: https://github.com/ChessMess/UltimateDarkTower/compare/v2.1.0...v2.1.1
84
91
  [2.1.0]: https://github.com/ChessMess/UltimateDarkTower/compare/v2.0.0...v2.1.0
@@ -1,3 +1,4 @@
1
+ import{createRequire}from'module';const require=createRequire(import.meta.url);
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimatedarktower",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "This library provides functions to communicate with the bluetooth le enabled Tower that comes with Restoration Games Return To Dark Tower board game.",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "type-check": "tsc --noEmit",
33
33
  "clean": "rm -rf dist coverage",
34
34
  "watch": "tsc -watch",
35
- "build": "npm run clean && npm run type-check && tsc && esbuild src/index.ts --bundle --format=esm --outfile=dist/esm/index.mjs --packages=external && npm run build:examples",
35
+ "build": "npm run clean && npm run type-check && tsc && esbuild src/index.ts --bundle --format=esm --outfile=dist/esm/index.mjs --packages=external --banner:js=\"import{createRequire}from'module';const require=createRequire(import.meta.url);\" && npm run build:examples",
36
36
  "build:examples": "node build-examples.js",
37
37
  "dev": "npm run watch",
38
38
  "ci": "npm run lint && npm run type-check && npm run test:ci && npm run build",