Skip to content

Releases: hazae41/glacier

1.4.1-0

13 Mar 20:26
Compare
Choose a tag to compare
  • ScrollQuery.peek() returns the next key (or undefined if ended)

1.4.0 - Results

08 Mar 08:32
Compare
Choose a tag to compare

BREAKING

  • Renamed Result to ResultInit

Non breaking

  • New Result type which follows wrapper.unwrap() pattern
  • Result.from(init) converts a ResultInit into a Result
  • Result.map(callback) maps the result data into another type
  • Result.unwrap() returns the data or throws the error
  • Result.rewrap(wrapper) transforms a wrapper (an object with unwrap()) into a Result
  • Result.wrap(callback) and Result.wrapSync(callback) can wrap a throwable callback into a Result

Fixes

  • Fixed a bug with normalization and storage

1.3.0 - Safer lock management

07 Mar 14:12
Compare
Choose a tag to compare

NO BREAKING CHANGE

No new features or usage, lot of bugs were fixed but maybe new bugs arrived

1.2.4 - Renamed things && Schemas early return

28 Feb 16:47
Compare
Choose a tag to compare

BREAKING

  • Renamed useQuery to useSchema (or useScrollSchema)
  • Renamed useSingleQuery to useQuery

NOT BREAKING

  • Allow schema factories to return undefined:
function getHello(socket?: WebSocket) {
  if (!socket) return

  return getSchema("hello", key => fetcher(key, socket))
}

1.2.2 - Clean

17 Feb 14:49
Compare
Choose a tag to compare

BREAKING

  • Made Core fields private

1.2.1 - ESNext

17 Jan 12:59
Compare
Choose a tag to compare
  • removed tslib dependency

1.2.0 - Improved type system

06 Jan 13:41
Compare
Choose a tag to compare
  • BREAKING: error is no longer typed, it is always unknown, just like in a try-catch block
    Migration:
// previously
useSingleSchema<Data, Error, Key>(key, fetcher, params)

// now
useSingleSchema<Data, Key>(key, fetcher, params)
  • BREAKING: serializer and normalizer are no longer allowed in global params
  • less verbose type system
  • removed all any types

1.1.14 - Fix optimistic

04 Jan 12:38
Compare
Choose a tag to compare
  • Optimistics now rollback to realData

1.1.13 - Fix for React strict mode

04 Jan 11:51
Compare
Choose a tag to compare
  • Fixed core mounting in React strict mode
    • Fixed garbage collection
    • Maybe other bugs?

1.1.12 - Rollup and updates

04 Jan 01:12
Compare
Choose a tag to compare
  • Unified Rollup config
  • Updated deps
  • modified react peer dependenct to >=17
  • moved tslib as dependency