Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Releases: boywithkeyboard-archive/cachu

v7.0.0

29 Oct 14:50
Compare
Choose a tag to compare

Breaking Changes

  • changed the way you create a new cache.

    // before v7
    import { useCache } from 'cachu'
    
    const cache = useCache({
      maxAge: '10m',
      maxAmount: 10000,
      autodelete: false
    })
    
    // v7
    import { Cache } from 'cachu'
    
    const cache = new Cache({
      maximumAge: '10m',
      maximumAmount: 10000,
      autodelete: false
    })

New Features

  • you can now set a maximum size for each record.

    import { Cache } from 'cachu'
    
    const cache = new Cache({
      maximumRecordSize: '10 KB'
    
      // alternatively, you can specify the amount of bytes as a number
      maximumRecordSize: 10000
    })

v6.0.6

20 Aug 11:14
c05b47e
Compare
Choose a tag to compare

Patch Changes

v6.0.5

15 Aug 21:08
31d7221
Compare
Choose a tag to compare

Patch Changes

v6.0.4

02 Aug 17:18
d3b6419
Compare
Choose a tag to compare

Patch Changes

  • d2c5409 Thanks @unvented! - refactor: edit testing

    Edit Jest config and test script, and add a test workflow.

  • 5401b53 Thanks @unvented! - refactor: replace rimraf with @unvented/empty

  • 3b42753 Thanks @unvented! - fix: add missing main field to package.json

v6.0.3

02 Aug 00:45
1139dc0
Compare
Choose a tag to compare

Patch Changes

  • 8d04665 Thanks @unvented! - refactor: migrate to azury's style guide (tsconfig)

v6.0.2

01 Aug 23:07
b88a7d5
Compare
Choose a tag to compare

Patch Changes

v6.0.1

31 Jul 15:53
509e807
Compare
Choose a tag to compare

Patch Changes

v6.0.0

29 Jul 19:16
64ae640
Compare
Choose a tag to compare

Major Changes

Patch Changes

v6.0.0-canary.4

18 Jun 23:01
Compare
Choose a tag to compare
v6.0.0-canary.4 Pre-release
Pre-release

Warning
This is a development release!

v6.0.0-canary.3

16 Jun 10:38
Compare
Choose a tag to compare
v6.0.0-canary.3 Pre-release
Pre-release

Warning
This release is for test purposes only.