Skip to content

Releases: livingdata-co/addok-cluster

v0.12.0

13 Nov 09:35
bef21b0

Choose a tag to compare

Features

  • Native filter arrays: Filter arrays are now passed directly to the addok API without client-side concatenation. This improves compatibility and allows the addok server to handle OR logic natively.

Internal

  • Updated GitHub Actions workflow to test against Node.js 24.x
  • Upgraded Coveralls GitHub Action from master to v2 with fail-on-error configuration

Full Changelog: v0.11.0...v0.12.0

v0.11.0

26 Oct 08:24
e466dc7

Choose a tag to compare

Features

  • Multiple filter values with OR logic: Filter values can now be provided as arrays of strings to support OR logic, in addition to single string values for backward compatibility. Arrays are automatically converted to addok's + separator format.

    // Single value (backward compatible)
    filters: {
      type: 'street',
      postcode: '75001'
    }
    
    // Multiple values with OR logic (new)
    filters: {
      type: 'street',
      postcode: ['75001', '75002', '75003']  // Returns results matching any of these postcodes
    }

Dependencies

  • Updated ioredis from 5.8.1 to 5.8.2

Internal

  • Added formatFilterValue helper function to handle filter value transformation
  • Enhanced validateFilters to support both string and array values
  • Added comprehensive test coverage for multi-value filters

Full Changelog: v0.10.0...v0.11.0

v0.10.0

15 Oct 13:21
797543a

Choose a tag to compare

What's Changed

  • Add onTerminate hook to handle cluster termination by @Copilot in #8

New Contributors

  • @Copilot made their first contribution in #8

Full Changelog: v0.9.0...v0.10.0

v0.9.0

23 May 16:33
982f895

Choose a tag to compare

Notable changes

  • Drop Node 18

Commits

  • Update GA config ee4733e
  • Update Node.js minimal version to 20 LTS dd9f8cf
  • Update many dependencies eab3617

v0.8.0...v0.9.0

v0.8.0

23 Sep 23:38
0123d9d

Choose a tag to compare

Notable changes

  • Add inspect() method on cluster instances
  • Bug fix

Commits

  • Set packageManager field to use yarn@1.22.22 e0337f1
  • Add inspect method b4ca68b
  • Fix queue freeze when multiple addok nodes are recreating 84e78f3

v0.7.0...v0.8.0

v0.7.0

03 Feb 21:33
bf240ed

Choose a tag to compare

Notable changes

  • A cluster can now manage its own redis-server instance

Commits

  • Merge pull request #4 from livingdata-co/managed-redis f550fd5
  • Add managed redis in cluster 5be9400
  • Fix createInstance startup timeout 170722a
  • Improve computeAddokRedisConfigs 7cf0385
  • Add createInstance method to start a redis managed server 620513f
  • Rename main branch from master to main 3318111
  • Enable Node.js 21 builds ef620bb
  • Enable Node.js 20 builds abf8a81
  • Update c8 (8.0.1) 8f525cd
  • Disable unicorn/prefer-event-target rule d278bc4
  • Ignore newlines between import groups 91f9a7c
  • Update xo (0.56.0) 20d4a51
  • Update ava (5.3.1) b358928
  • Update supports-color (9.4.0) c8247de

v0.6.2...v0.7.0

v0.6.2

21 Jun 20:44
04b4b73

Choose a tag to compare

Commits

v0.6.1...v0.6.2

v0.6.1

21 Jun 14:36
7cb48e0

Choose a tag to compare

Commits

  • Fix pyshell instance creation 0a21ece

v0.6.0...v0.6.1

v0.6.0

21 Jun 13:30
7a455e1

Choose a tag to compare

Notables changes

  • Unix sockets can now be used for redis connections (unix:/path/to/redis.sock)

Commits

v0.5.0...v0.6.0

v0.5.0

17 Mar 17:17
7f29dff

Choose a tag to compare

Notable changes

  • Improve cluster and nodes lifecycle
  • Increase coverage to 98%
  • Throw error when a cluster is terminated
  • cluster.end() now returns a Promise
  • Drop onFailure option
  • Add logger option to createCluster
  • Fix many issues

Commits

  • Fix getNumNodes d67e1fa
  • More tests 8b58b27
  • Throw an error when cluster is already terminated 64859db
  • Improve cluster lifecycle bd2a7f9
  • Add tests for priority, signal, errors, timeout a71e2c5
  • Remove node.isIdle property 925b2de
  • Add more test cases d7860fc
  • Ensure geocode and reverse are always async 35622d2
  • Drop onFailure handler 1527cb9
  • Add test for node recreation on failure 43c2301
  • More tests 8bdf6a6
  • Never write to console when NODE_ENV=test 41abadb
  • Add maxConsecutiveFailedStartup option to createCluster bf1072c
  • Ensure only error message is logged out 9acd49e
  • Expose idleNodesCount and activeNodesCount b070d0f
  • Enforce node creation 61ba958
  • Add strategy to override createNode in createCluster 454fcc1
  • Define files to include in code coverage 1fefe15
  • Add tests for getNumNodes 92e53e7
  • Move getLogger to logger.js 24b751f
  • Improve test coverage a2c6130
  • Improve tests on kill/end 4535ea9
  • Refactor kill/cleanup methods 6f5e3e1
  • Remove cover script (unused) 6674aae
  • Rename kill attributes 479210a
  • Add more unit tests 28da1bb
  • Add logger option to createNode e56f7ad
  • Add killTimeout createNode option 084add6
  • Improve params tests 90ec7bb
  • Update c8 (7.13.0) 5badde3
  • Update ava (5.2.0) 6d4abc8
  • Update python-shell (5.0.0) 3bbf106
  • Add unit tests for node.js 4ede7b6
  • Add requestTimeout option to createNode 7e81105
  • Add startupTimeout option to createNode b4d4534
  • Add createPyShellInstance option to createNode 3a9aac2
  • Move PyShell instantiation in createPyShellInstance constructor 79bbee6

v0.4.2...v0.5.0