@zukhruf/election 0.8.157 → 0.8.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -202,7 +202,7 @@ See the recipe [Run a job in only one process](./docs/recipes/run-a-job-in-only-
202
202
 
203
203
  ## Write a backend
204
204
 
205
- `LeaderElection` is an abstract class. It runs the campaign, and it owns the term. Its constructor takes the name of the election and the clock. The name is the identity of the election in its backend: two elections with the same name are one election. Derive it from the claim, so that it cannot disagree with the claim ([ADR 0010](./docs/adr/0010-an-election-has-a-name-and-the-name-of-a-sqlite-election-is-the-path-of-its-claim-file.md)). A backend is a subclass that implements seven steps for its claim ([ADR 0008](./docs/adr/0008-the-backend-owns-the-wait-between-two-tries-and-poll-leaves-the-campaign.md)):
205
+ `LeaderElection` is an abstract class. It runs the campaign, and it owns the term. Its constructor takes the name of the election and the clock. The name is the identity of the election in its backend: two elections with the same name are one election. Derive it from the claim, so that it cannot disagree with the claim ([ADR 0010](./docs/adr/0010-an-election-has-a-name-and-the-name-of-a-sqlite-election-is-the-path-of-its-claim-file.md)). A backend is a subclass that implements seven steps for its claim ([ADR 0008](./docs/adr/0008-the-backend-owns-the-wait-between-two-tries-and-poll-leaves-the-campaign.md)): `MutexElection` of [`@zukhruf/mutex`](../mutex/README.md#elect-a-leader-with-a-key) is a backend over a key of the mutex, so each lock store can hold the claim ([mutex ADR 0036](../mutex/docs/adr/0036-a-key-is-a-backend-of-leader-election.md)).
206
206
 
207
207
  | Step | What it does |
208
208
  | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zukhruf/election",
3
- "version": "0.8.157",
3
+ "version": "0.8.159",
4
4
  "description": "Elects a leader among candidates. Each term has a higher epoch and ends when the leader resigns or dies. Backends subclass one campaign. `SqliteElection` elects among processes of one host; candidates and observers end a leader whose pipe heartbeats stop.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,14 +40,14 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@zukhruf/async": "^0.8.157",
44
- "@zukhruf/fs": "^0.8.157",
45
- "@zukhruf/lease": "^0.8.157",
46
- "@zukhruf/pipes": "^0.8.157"
43
+ "@zukhruf/async": "^0.8.159",
44
+ "@zukhruf/fs": "^0.8.159",
45
+ "@zukhruf/lease": "^0.8.159",
46
+ "@zukhruf/pipes": "^0.8.159"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@sinonjs/fake-timers": "15.5.0",
50
- "@zukhruf/parameterized-test": "^0.8.157",
51
- "@zukhruf/testing": "^0.8.157"
50
+ "@zukhruf/parameterized-test": "^0.8.159",
51
+ "@zukhruf/testing": "^0.8.159"
52
52
  }
53
53
  }