@item-enonic-types/lib-time 1.2.1 → 1.3.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/README.md CHANGED
@@ -19,7 +19,7 @@ repositories {
19
19
  }
20
20
 
21
21
  dependencies {
22
- include "no.item:lib-xp-time:1.1.0"
22
+ include "no.item:lib-xp-time:1.3.0"
23
23
  }
24
24
  ```
25
25
 
@@ -154,8 +154,6 @@ To build the project, run the following command
154
154
  enonic project build
155
155
  ```
156
156
 
157
- You will find the jar-file at _./build/libs/item.jar_
158
-
159
157
  ### Deploying locally
160
158
 
161
159
  To deploy to a local sandbox, run the following command
@@ -169,3 +167,9 @@ enonic project deploy
169
167
  ```bash
170
168
  ./gradlew publish -P com.enonic.xp.app.production=true
171
169
  ```
170
+
171
+ ### Deploy to npm
172
+
173
+ ```bash
174
+ npm publish
175
+ ```
@@ -66,4 +66,6 @@ export interface LocalDateTime {
66
66
  withNano(nano: number): LocalDateTime;
67
67
  withSecond(second: number): LocalDateTime;
68
68
  withYear(year: number): LocalDateTime;
69
+ toEpochSecond(offset: ZoneOffset): number;
70
+ toInstant(offset: ZoneOffset): Instant;
69
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@item-enonic-types/lib-time",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Type definitions for lib-time",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -9,19 +9,19 @@
9
9
  "tsconfig.json"
10
10
  ],
11
11
  "devDependencies": {
12
- "@changesets/cli": "^2.27.12",
12
+ "@changesets/cli": "^2.29.8",
13
13
  "@item-enonic-types/lib-testing": "^7.13.0",
14
- "@swc/core": "^1.10.14",
15
- "@types/node": "^22.13.1",
16
- "eslint": "^9.19.0",
17
- "eslint-config-prettier": "^10.0.1",
18
- "eslint-plugin-prettier": "^5.2.3",
19
- "concurrently": "^9.1.2",
20
- "glob": "^11.0.1",
21
- "prettier": "^3.4.2",
22
- "tsup": "^8.3.6",
23
- "typescript": "^5.7.3",
24
- "typescript-eslint": "^8.23.0"
14
+ "@swc/core": "^1.15.4",
15
+ "@types/node": "^25.0.1",
16
+ "eslint": "^9.39.2",
17
+ "eslint-config-prettier": "^10.1.8",
18
+ "eslint-plugin-prettier": "^5.5.4",
19
+ "concurrently": "^9.2.1",
20
+ "glob": "^13.0.0",
21
+ "prettier": "^3.7.4",
22
+ "tsup": "^8.5.1",
23
+ "typescript": "^5.9.3",
24
+ "typescript-eslint": "^8.49.0"
25
25
  },
26
26
  "dependencies": {
27
27
  "@item-enonic-types/nashorn-env": "^0.0.2"
@@ -69,4 +69,6 @@ export interface ZonedDateTime {
69
69
  withZoneSameInstant(zone: ZoneId): ZonedDateTime;
70
70
  withZoneSameLocal(zone: ZoneId): ZonedDateTime;
71
71
  toString(): string;
72
+ toEpochSecond(): number;
73
+ toInstant(): Instant;
72
74
  }