Releases: iwpnd/tile38-ts
Releases · iwpnd/tile38-ts
v2.4.3
v2.4.2
v2.4.1
2.4.1 (2025-01-09)
Other
- 🎨 import sorting (3ed92f6)
- 🔧 bump nodejs (6080c07)
- 🔧 husky deprecations (1722ba9)
- 🔧 lockfile maintenance (5045b13)
- deps-dev: 🔧 bump node version (f5c5cc1)
- deps-dev: 🔧 bump tile38 (2f129d3)
- deps-dev: 🔧 bump tile38 dev dep (54b1aa3)
- deps-dev: 🔧 fix linting (a1181c3)
- deps-dev: 🔧 fix linting (df240b8)
- deps-dev: 🔧 husky deprecation warning (edece1d)
- deps-dev: 🔧 separate tsconfigs (9ab8aa1)
- deps-dev: 🔧 update (400c5b7)
- deps-dev: 🔧 update (81f8754)
- deps-dev: 🔧 update (1854be2)
- deps-dev: 🔧 update (6a3bb49)
- deps-dev: 🔧 update (b7aa60f)
- deps-dev: 🔧 update (1d7a824)
- deps-dev: 🔧 update docker-compose (64ed492)
- deps: 🔗 update ioredis (68b89e0)
v2.4.0
2.4.0 (2024-07-06)
Features
- ✨ add channels to followers (d86bc58)
// Start a channel that sends event, when object in 'fleet'
// enters the area of a 500m radius around
// latitude 33.5123 and longitude -112.2693 with the Leader
await tile38
.setChan('warehouse')
.nearby('fleet')
.point(33.5123, -112.2693, 500)
.exec();
Now add a receiving channel and add an event handler.
// also as of tile38 v1.33.1 followers can open a channel
const followerChannel = await tile38.follower().channel();
followerChannel.on('message', (message) => console.log(message));
Now that channel can:
// also as of tile38 v1.33.1 followers can open a channel
await followerChannel.subscribe('warehouse');
// or pattern subscribed to
await followerChannel.pSubscribe('ware*');
Every .set()
on the leader results in the geofence event
being forwarded to the follower channel.
await tile38.set('fleet', 'bus').point(33.5123001, -112.2693001).exec();
// event =
> {
"command": "set",
"group": "5c5203ccf5ec4e4f349fd038",
"detect": "inside",
"hook": "warehouse",
"key": "fleet",
"time": "2021-03-22T13:06:36.769273-07:00",
"id": "bus",
"meta": {},
"object": { "type": "Point", "coordinates": [-112.2693001, 33.5123001] }
}
// to unsubscribed
await followerChannel.unsubscribe();
// to delete with the leader
await tile38.delChan('warehouse');
// or pattern delete with the leader
await tile38.pDelChan('ware*');
Other
v2.3.0
2.3.0 (2024-06-23)
Added the WHEREIN
subcommand to allow to filter values in a search by whether they're contained in an
input array of values.
await tile38
.set('fleet', 'truck1')
.fields({ weight: 9001 })
.point(33.5123, -112.2693)
.exec();
await tile38
.set('fleet', 'truck2')
.fields({ weight: 9003 })
.point(33.5123, -112.2693)
.exec();
let response = await tile38.scan('fleet').wherein('weight',[9003]).asCount().exec();
console.log(response)
> {"ok":true,"count":1,"cursor":0,"elapsed":"2.078168ms"}
response = await tile38.scan('fleet').wherein('weight',[9001,9003]).asCount().exec();
console.log(response)
> {"ok":true,"count":2,"cursor":0,"elapsed":"2.078168ms"}
Features
- ✨ add WHEREIN subcommand (f314df9)
- ✨ add WHEREIN to intersects, within, nearby, scan and search (251ff88)
Other
Documentation
v2.2.1
v2.2.0
2.2.0 (2024-06-07)
Features
- ✨ add EXISTS command as of Tile38 v1.33.0 (b52144c)
- ✨ add FEXISTS command as of Tile38 v1.33.0 (9fa1719)
await tile38
.set('fleet', 'truck1')
.fields({ maxSpeed: 90 })
.point(33.5123, -112.2693)
.exec();
let response = await tile38.fexists('fleet', 'truck1', 'weight');
console.log(response.exists);
// > true
response = await tile38.fexists('fleet', 'truck1', 'milage');
console.log(response.exists);
// > false
response = await tile38.exists('fleet', 'truck1');
console.log(response.exists);
// > true
response = await tile38.exists('fleet', 'truck2');
console.log(response.exists);
// > false
Other
- 🔧 bump tile38 v1.33.0 (dcd9063)
- deps-dev: 🔧 update (b5f304e)
- deps-dev: 🔧 update (59b578e)
- deps-dev: 🔧 update (76d257a)
- deps-dev: bump rimraf from 5.0.5 to 5.0.7 (2d63de1)
Documentation
- 📚️ update documentation with FEXISTS and EXISTS (7c6c01c)
v2.1.4
2.1.4 (2024-05-04)
Other
- 👷 dependabot add github-actions (10c1d3c)
- 👷 update dependabot schedule (34d7b6c)
- 🔧 fix release config (874fcb3)
- deps-dev: 🔧 downgrade conventional-changelog-conventionalcommits (5e9ea7a)
- deps-dev: 🔧 update (cd70528)
- deps-dev: 🔧 update (391d100)
- deps-dev: 🔧 update (e1888c7)
- deps-dev: 🔧 update (63342d8)
- deps: 📦️ update (2d4d5ac)
- deps: 🔗 upgrade ioredis to v5.4.1 (99fab78)
v2.1.3
2.1.3 (2024-03-11)
Bug Fixes
- 🐛 Base response interface id cannot be number (7860883)
Other
- 📦️ update typescript (40a969b)
- 🔧 fix dev dependencies (8ba16b7)
- deps-dev: 🔧 .editorconfig (05deef3)
- deps-dev: 🔧 bump tile38 container (467e14b)
- deps-dev: 🔧 update (62334e0)
- deps-dev: 🔧 update (df110e3)
- deps-dev: 🔧 update (c1a9895)
- deps-dev: 🔧 update (0dba492)
- deps-dev: 🔧 update (17d81a8)
- deps-dev: 🔧 update commitlint & lockfile maintenance (95b56d4)
- deps-dev: bump husky from 9.0.10 to 9.0.11 (53586f6)
v2.1.2
2.1.2 (2024-02-10)
Other
- 🔧 if chore(deps) release patch (7d71f71)
- deps-dev: 🔧 update (dc1fce7)
- deps-dev: 🔧 update (dded893)
- deps-dev: 🔧 update (1ab00b9)
- deps-dev: 🔧 update dev dependencies (7ff7e60)
- deps-dev: bump prettier from 3.2.2 to 3.2.3 (c7a2da3)
- deps-dev: bump prettier from 3.2.3 to 3.2.4 (5eb8e6a)
Documentation
- fix setChan examples (79871e3)