Skip to content

Commit e2b9b66

Browse files
committed
Switch Point to tuple. Bump version to 0.5
1 parent 152bf94 commit e2b9b66

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.5.0
4+
5+
- `Point` type changed from template literal string (`"[x.y]"`) to tuple (`[number, number]`).
6+
7+
### Breaking changes
8+
9+
- `Point` is now `[number, number]` instead of `` `[${number}.${number}]` ``. Code passing string points must switch to numeric tuples.
10+
311
## 0.4.0
412

513
- `ScrLev` is now `declare enum` with named levels (`ScrLev.OVERRIDE`, `ScrLev.AREA`, etc.).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bgforge/iets",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"type": "module",
55
"exports": {
66
".": "./src/index.ts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export type ObjectPtr = IE<string, "ObjectPtr"> | ObjectSpec;
7171
/**
7272
* Area point/location.
7373
*/
74-
export type Point = `[${number}.${number}]`;
74+
export type Point = [number, number];
7575

7676
/** Spell.ids */
7777
export type SpellID = IE<number, "SpellID">;

0 commit comments

Comments
 (0)