Releases: MarciiTheDev/marcsync-nodejs-client
Version 1.2.1 - Added automatic reconnect for Websockets
Added auto-reconnect once the Websocket connection to the SignalR-Hub gets dropped for some reason.
What's Changed
- Added automatic reconnect after connection with SignalR-Hub lost by @MarciiTheDev in #6
- Added automatic reconnect for Websockets by @MarciiTheDev in #7
- Update package.json - Version 1.2.1 by @MarciiTheDev in #8
- Update package.json - Version 1.2.1 by @MarciiTheDev in #9
Full Changelog: v1.2.0...v1.2.1
Version 1.2.0 - Generic Types Update
Added the ability to generically interact with Entries inside of Collections, which now allows you to specify how entries are structured in your Database via Interfaces.
Example:
interface Dog extends EntryData {
name: string,
age: number,
race: name
}
const collection = ms.getCollection<Dog>("dog-list");
collection.getEntries({
name: "Bella"
}).then(entry => {
console.log(`Bella's race is: ${entry.getValue("race")}`)
});TypeScript automatically detects the type of all of the entry's values with the help of the interface we have created in the above example.
Changelog:
- Added Generic Types
- Removed
.getValuesAs<T>
What's Changed
- Added Generic Types - Version 2.0.0 by @MarciiTheDev in #4
- Version 2.0.0 Release Merge by @MarciiTheDev in #5
New Contributors
- @MarciiTheDev made their first contribution in #4
Full Changelog: v1.1.4-dev...v1.2.0
Fixed Issues
Issues fixed:
#3
Full Changelog: v1.1.3-dev...v1.1.4-dev
Fixed Issues
Issues fixed:
#2
Fixed Issues
Issus fixed:
#1
Bug Fix: Query Without Arguments
Fixed the issue where you couldn't query without proving the 'filter' argument.
You should now instead get a list of all documents found inside that collection. (just like in the Roblox Client)
Websocket Support
Added Websocket Support, meaning that you can now subscribe to the following events:
- entryCreated
- entryUpdated
- entryDeleted
More subscribe options (collectionCreated, collectionUpdated, collectionDeleted) will follow soon.
Setup basic functionality
In this first pre-release, and after some asking, I have setup some basic functionality similar to the MarcSync Roblox Client.
This build is not production ready and issues must be expected, as this is the first release.
If you are faceing any issues, you are free to report them on the Discord or via GitHub Issues and you can, as always, contribute the the project at any time.