@agoric/time 0.3.3-dev-57802f9.0 → 0.3.3-mainnet1B-dev-c0e1089.0
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.
- package/CHANGELOG.md +45 -0
- package/package.json +9 -14
- package/src/timeMath.js +2 -3
- package/src/typeGuards.js +1 -1
- package/src/types.d.ts +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
### [0.3.3-u11.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/time@0.3.2...@agoric/time@0.3.3-u11.0) (2023-08-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @agoric/time
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### [0.3.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/time@0.3.1...@agoric/time@0.3.2) (2023-06-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @agoric/time
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### [0.3.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/time@0.3.0...@agoric/time@0.3.1) (2023-05-24)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @agoric/time
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## 0.3.0 (2023-05-19)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **auction:** add an auctioneer to manage vault liquidation ([#7000](https://github.com/Agoric/agoric-sdk/issues/7000)) ([398b70f](https://github.com/Agoric/agoric-sdk/commit/398b70f7e028f957afc1582f0ee31eb2574c94d0)), closes [#6992](https://github.com/Agoric/agoric-sdk/issues/6992) [#7047](https://github.com/Agoric/agoric-sdk/issues/7047) [#7074](https://github.com/Agoric/agoric-sdk/issues/7074)
|
|
36
|
+
* create new @agoric/time package ([a61a3fb](https://github.com/Agoric/agoric-sdk/commit/a61a3fbb7a5ccfe07c715a310baa88ada8e572b2)), closes [#6003](https://github.com/Agoric/agoric-sdk/issues/6003)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* **time:** TimerService now returns branded TimestampRecord ([9137e9c](https://github.com/Agoric/agoric-sdk/commit/9137e9cab6f459c876b1a2ad8e681be7224749ce)), closes [#6003](https://github.com/Agoric/agoric-sdk/issues/6003)
|
|
42
|
+
* clean up types ([6f53f19](https://github.com/Agoric/agoric-sdk/commit/6f53f1915ce21e65fefc2fff900b7d4b947be6b1))
|
|
43
|
+
* move timer files to new package ([c105bde](https://github.com/Agoric/agoric-sdk/commit/c105bdefff2527a90b3c6b9d80d0462944dd51c3))
|
|
44
|
+
* TimerBrand has isMyTimerService(), not isMyTimer() ([9f4e867](https://github.com/Agoric/agoric-sdk/commit/9f4e8670694504ebbd451c8840f900a1a24b902f))
|
|
45
|
+
* **time:** fix the code/test to work in its new home ([504d333](https://github.com/Agoric/agoric-sdk/commit/504d3335cf632cc50e079fb27a82db604318bd4a))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/time",
|
|
3
|
-
"version": "0.3.3-dev-
|
|
3
|
+
"version": "0.3.3-mainnet1B-dev-c0e1089.0+c0e1089",
|
|
4
4
|
"description": "Timestamps, time math, timer service API definition",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "ava",
|
|
13
13
|
"test:xs": "exit 0",
|
|
14
14
|
"lint": "run-s --continue-on-error lint:*",
|
|
15
|
-
"lint:types": "tsc",
|
|
15
|
+
"lint:types": "tsc -p jsconfig.json",
|
|
16
16
|
"lint:eslint": "eslint .",
|
|
17
17
|
"lint-fix": "yarn lint:eslint --fix"
|
|
18
18
|
},
|
|
@@ -30,19 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@agoric/assert": "0.6.1-dev-
|
|
34
|
-
"@
|
|
35
|
-
"@endo/
|
|
33
|
+
"@agoric/assert": "0.6.1-mainnet1B-dev-c0e1089.0+c0e1089",
|
|
34
|
+
"@agoric/store": "0.9.3-mainnet1B-dev-c0e1089.0+c0e1089",
|
|
35
|
+
"@endo/nat": "4.1.27"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@endo/far": "
|
|
39
|
-
"@endo/init": "
|
|
40
|
-
"ava": "^5.
|
|
41
|
-
},
|
|
42
|
-
"ava": {
|
|
43
|
-
"require": [
|
|
44
|
-
"@endo/init/debug.js"
|
|
45
|
-
]
|
|
38
|
+
"@endo/far": "0.2.18",
|
|
39
|
+
"@endo/init": "0.5.56",
|
|
40
|
+
"ava": "^5.2.0"
|
|
46
41
|
},
|
|
47
42
|
"files": [
|
|
48
43
|
"*.js",
|
|
@@ -52,5 +47,5 @@
|
|
|
52
47
|
"publishConfig": {
|
|
53
48
|
"access": "public"
|
|
54
49
|
},
|
|
55
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c0e10895096f10703536fec603ebf1e2c2f948bc"
|
|
56
51
|
}
|
package/src/timeMath.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
+
import { mustMatch } from '@agoric/store';
|
|
1
2
|
import { Nat } from '@endo/nat';
|
|
2
|
-
import { mustMatch } from '@endo/patterns';
|
|
3
3
|
import { RelativeTimeRecordShape, TimestampRecordShape } from './typeGuards.js';
|
|
4
4
|
|
|
5
5
|
const { Fail, quote: q } = assert;
|
|
6
6
|
/**
|
|
7
|
-
* @typedef {import('@endo/marshal').RankComparison} RankComparison
|
|
8
|
-
*
|
|
9
7
|
* @typedef {import('./types').TimerBrand} TimerBrand
|
|
10
8
|
* @typedef {import('./types').Timestamp} Timestamp
|
|
11
9
|
* @typedef {import('./types').RelativeTime} RelativeTime
|
|
12
10
|
* @typedef {import('./types').RelativeTimeValue} RelativeTimeValue
|
|
13
11
|
* @typedef {import('./types').TimestampValue} TimestampValue
|
|
14
12
|
* @typedef {import('./types').TimeMathType} TimeMathType
|
|
13
|
+
*
|
|
15
14
|
*/
|
|
16
15
|
|
|
17
16
|
/**
|
package/src/typeGuards.js
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable no-use-before-define, no-undef */
|
|
2
2
|
import type { ERef } from '@endo/eventual-send';
|
|
3
3
|
|
|
4
|
-
import type { RankComparison } from '@
|
|
4
|
+
import type { RankComparison } from '@agoric/store';
|
|
5
5
|
|
|
6
6
|
/// <reference types="@agoric/notifier/src/types.js"/>
|
|
7
7
|
|