Releases: iwpnd/tile38-ts
Releases Β· iwpnd/tile38-ts
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)
v2.1.1
v2.1.0
v2.0.1
2.0.1 (2024-01-10)
Bug Fixes
- π transfer ownership (ad61b3d)
Other
- π¨ bump linter/prettier dependencies and run --fix (fac7f0d)
- π§ dependabot group dependencies (feaa77b)
- π§ dependabot rename group dependencies (a1d9552)
- deps-dev: bump @commitlint/config-conventional (dafdcc2)
- deps-dev: bump @semantic-release/changelog from 6.0.2 to 6.0.3 (877722b)
- deps-dev: bump @semantic-release/github from 8.0.7 to 9.0.5 (bed8db1)
- deps-dev: bump husky from 8.0.2 to 8.0.3 (bbfa422)
- deps-dev: bump lint-staged from 13.2.0 to 14.0.1 (9b084c9)
- deps-dev: bump lint-staged from 14.0.1 to 15.1.0 (69fa480)
- deps-dev: bump prettier from 3.0.3 to 3.1.0 (697a4ed)
- deps-dev: bump rimraf from 4.4.1 to 5.0.5 (ca0dc1e)
- deps-dev: bump the eslint group with 3 updates (aafcba2)
- deps-dev: bump the eslint group with 6 updates (01eaa56)
- deps-dev: bump the semantic-release group with 1 update (e445b22)
- deps-dev: bump the semantic-release group with 1 update (8819a0c)
- deps-dev: bump the semantic-release group with 4 updates (4eb0fa5)
- deps-dev: bump the semantic-release group with 4 updates (421bc86)
- deps-dev: bump the semantic-release group with 4 updates (6f2171d)
- deps-dev: bump typescript from 5.1.6 to 5.2.2 (9ff40b4)
- deps: bump @vpriem/geojson from 1.1.0 to 1.2.0 (fae88ec)
- deps: bump @vpriem/geojson from 1.2.0 to 1.3.0 (6b819b0)
Documentation
- update readme (4b0e57b)