Skip to content
Permalink
develop
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

Note: Unlisted patch versions only involve non-code or otherwise excluded changes and/or version bumps of transitive dependencies.

6.1.0 (2021-11-17)

🚀 Features

  • Using workspaces for local tools (bf7a404) Improving the overall build ergonomics
    • introduced a tools workspaces
    • imported it in all needed packages/examples
    • inclusive project root

♻️ Refactoring

  • testrunner to binary (4ebbbb2) this commit reverts (partly) changes made in: ef346d7a8753590dc9094108a3d861a8dbd5dd2c overall purpose is better testament ergonomics: instead of having to pass NODE_OPTIONS with every invocation having a binary to handle this for us.

6.0.1 (2021-10-13)

♻️ Refactoring

  • update imports in all tests/pkgs (effd591)
  • update imports in all pkgs (5fa2b6f)
    • add .js suffix for all relative imports

6.0.0 (2021-10-12)

🛑 Breaking changes

  • major update of ALL pkgs (export maps, ESM only) (0d1d6ea)
  • BREAKING CHANGE: discontinue CommonJS & UMD versions
    • only ESM modules will be published from now on
    • CJS obsolete due to ESM support in recent versions of node:
      • i.e. launch NodeJS via:
      • node --experimental-specifier-resolution=node --experimental-repl-await
      • in the node REPL use await import(...) instead of require()
    • UMD obsolete due to widespread browser support for ESM Also:
    • normalize/restructure/reorg all package.json files
    • cleanup all build scripts, remove obsolete
    • switch from mocha to @thi.ng/testament for all tests

♻️ Refactoring

  • update deps & imports in various pkgs (e1cf29e)
    • largely related to recent updates/restructuring of these packages:
      • api
      • defmulti
      • errors
      • logger
  • update various benchmarks (53e8a6a)
  • update imports (138571a)
  • update all tests in all pkgs (8b582bc)

5.0.0 (2021-02-20)

🛑 Breaking changes

  • update mallocAs/callocAs() handling (159042a)
  • BREAKING CHANGE: block type use string consts
    • part of unified umbrella-wide changes to @thi.ng/api Type alias (see a333d4182)
    • no code changes, just arg type update
    • update tests

4.2.3 (2020-12-07)

♻️ Refactoring

  • update type-only imports (91817aa)
  • update type-only imports in various tests/pkgs (3fd9c24)

4.2.0 (2020-10-19)

🚀 Features

♻️ Refactoring

  • rename IMemPoolAs => IMemPoolArray (2647274)
  • extract IMemPoolAs interface (69e018c)

4.1.26 (2020-09-22)

♻️ Refactoring

  • update malloc() (6fd0c1f)
    • extract private mallocTop()
  • update realloc(), add 0-checks (cc13a8f)
    • extract private reallocBlock() method
    • add checks to blockDataAddress/blockSelfAddress()

4.1.25 (2020-09-13)

♻️ Refactoring

4.1.24 (2020-08-28)

♻️ Refactoring

  • update delete op (TS4.0) (609d2da)

4.1.4 (2020-02-25)

♻️ Refactoring

4.1.0 (2019-11-09)

🚀 Features

  • fix block alignment/layout, update calloc/realloc (a40c265)
    • align initial top to first aligned address minus SIZEOF_MEM_BLOCK
    • fix new top calculation in malloc()
    • fix new size calculation in realloc()
    • update calloc() to only fill actual requested num bytes
    • add optional fill arg for calloc/callocAs()
    • use better/specific return types for mallocAs/callocAs(), reallocArray()
    • update/simplify blockDataAddress/blockSelfAddress() logic
    • add unlinkBlock() helper
    • add/update tests
  • add more buffered state, align opt, refactor, update tests (1ff9487)
    • add MemPoolOpts doc strings
    • add block alignment config
    • add separate view for pool state only
    • store compact/split config in buffer as well, add accessors
    • update/simplify MemBlockWrapper
    • extract toXXXAddress() as standalone fns
    • update tests to use computed addresses

🩹 Bug fixes

  • fix realloc(), various refactorings, add tests (fa3e1bc)
    • fix realloc() to pass original size arg to malloc (not padded size)
    • fix realloc() block migration to copy only data region
    • re-order STATE_FREE/USED
    • extract initialTop() calculation
    • add initBlock() / setBlockSize() return values, update call sites
    • minor update compact() to re-use computed value
    • rename various args/vars to be more consistent
    • add docstrings
  • update freeAll(), add test, doc strings, minor cleanup (830b267)

♻️ Refactoring

  • fix #163, extract splitBlock() method (6737c64)
  • minor refactoring, add tests, update benchmark (8642648)
    • re-use block size lookups in malloc()/realloc()
  • replace MemBlockWrapper w/ implict list, remove wrap() (973c779)
  • migrate & re-use types from @thi.ng/api (12898f0)

4.0.0 (2019-07-07)

🛑 Breaking changes

  • address TS strictNullChecks flag (e4781e3)
    • set default pool size in ctor (0x1000)
  • BREAKING CHANGE: update IMemPool return types
    • callocAs, mallocAs, reallocAs() now return undefined instead of null if operation failed

🚀 Features

3.0.0 (2019-05-22)

🛑 Breaking changes

  • remove Type enum, SIZEOF (b26df6d)
    • update references & tests
  • BREAKING CHANGE: remove Type enum, SIZEOF, migrated to @thi.ng/api

2.0.0 (2019-02-05)

🛑 Breaking changes

  • update MemPoolOpts & MemPool ctor args (6d15686)
  • BREAKING CHANGE: update MemPoolOpts & MemPool ctor args

1.0.0 (2019-01-21)

🛑 Breaking changes

  • update package build scripts & outputs, imports in ~50 packages (b54b703)
  • BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
    • build scripts now first build ES6 modules in package root, then call scripts/bundle-module to build minified CJS & UMD bundles in /lib
    • all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.

♻️ Refactoring

0.2.0 (2018-10-27)

🚀 Features

  • add MemPoolOpts, fix top block alloc, update tests, readme (c5b0f2f)

0.1.0 (2018-10-21)

🚀 Features

  • add freeAll(), release(), tests & benchmarks, update docs (4b72cda)
  • re-add block compaction & splitting, update readme (89f2bc2)
  • initial import @thi.ng/malloc package (2cf20c9)

🩹 Bug fixes

  • add size check, update readme (787102a)