Releases: dgoemans/spot
Releases · dgoemans/spot
Replace deepmerge
Full Changelog: v0.10.0...v0.11.0
- A bunch of package upgrades
- Replace deepmerge with deepmerge-ts for performance reasons
- Throw out node 10 and 12 support, and add 16 and 18
Add credentials override
What's Changed
- Bump lodash from 4.17.19 to 4.17.21 by @dependabot in #11
- Bump hosted-git-info from 2.8.8 to 2.8.9 by @dependabot in #12
- Bump y18n from 4.0.0 to 4.0.1 by @dependabot in #10
- Bump ws from 7.3.0 to 7.4.6 by @dependabot in #14
- Bump glob-parent from 5.1.1 to 5.1.2 in /example by @dependabot in #15
- Bump normalize-url from 4.5.0 to 4.5.1 in /example by @dependabot in #16
- Bump path-parse from 1.0.6 to 1.0.7 by @dependabot in #17
- Bump ajv from 6.12.2 to 6.12.6 by @dependabot in #19
Full Changelog: v0.9.5...v0.10.0
v.0.7.0-alpha.3
Attempt to fix env again
v.0.7.0-alpha.2
Fix env var
v.0.7.0-alpha.1
Added auth and fixed errors
v0.6.0
v0.6.0-alpha.2
And now with the fix in
v0.6.0-alpha.1
Track active commands and queries to allow for proper loading stop/start.
Typed data
Generic initialization
You can now initialize spot with a data type which will then be used everywhere, no longer forcing you to cast to your own type. Default behavior is unknown
which should maintain some semblance of backward compatibility.
Example:
interface MyStoreStructure {
myField: string;
}
const spot = initializeSpot<MyStoreStructure>('/api');
// Typescript will hint this correctly!
console.log(spot.data.myField);
// Typescript knows that this is also on the data object as it merges with Spots internal properties.
console.log(spot.data.loading);