@highstate/library 0.20.0 → 0.21.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highstate/library",
3
- "version": "0.20.0",
3
+ "version": "0.21.1",
4
4
  "type": "module",
5
5
  "highstate": {
6
6
  "type": "library"
@@ -23,23 +23,23 @@
23
23
  "stdlib"
24
24
  ]
25
25
  },
26
+ "scripts": {
27
+ "build": "highstate build",
28
+ "typecheck": "tsgo --noEmit --skipLibCheck",
29
+ "biome": "biome check --write --unsafe --error-on-warnings",
30
+ "biome:check": "biome check --error-on-warnings"
31
+ },
26
32
  "dependencies": {
27
- "remeda": "^2.21.0",
28
- "@highstate/contract": "0.20.0"
33
+ "@highstate/contract": "0.20.0",
34
+ "remeda": "^2.21.0"
29
35
  },
30
36
  "devDependencies": {
31
37
  "@biomejs/biome": "2.2.0",
38
+ "@highstate/cli": "0.20.0",
32
39
  "@typescript/native-preview": "^7.0.0-dev.20250920.1",
33
- "type-fest": "^4.41.0",
34
- "@highstate/cli": "0.20.0"
40
+ "type-fest": "^4.41.0"
35
41
  },
36
42
  "repository": {
37
43
  "url": "https://github.com/highstate-io/highstate"
38
- },
39
- "scripts": {
40
- "build": "highstate build",
41
- "typecheck": "tsgo --noEmit --skipLibCheck",
42
- "biome": "biome check --write --unsafe --error-on-warnings",
43
- "biome:check": "biome check --error-on-warnings"
44
44
  }
45
- }
45
+ }
package/src/index.ts CHANGED
@@ -20,3 +20,5 @@ export * as talos from "./talos"
20
20
  export * from "./third-party"
21
21
  export * from "./utils"
22
22
  export * as wireguard from "./wireguard"
23
+
24
+ // hi234
@@ -62,6 +62,20 @@ export const addressSpace = defineUnit({
62
62
  * The supported formats are the same as in `addresses`.
63
63
  */
64
64
  excluded: z.string().array().default([]),
65
+
66
+ /**
67
+ * Whether to return IPv4 subnets or filter them out.
68
+ *
69
+ * By default, is set to `true`.
70
+ */
71
+ ipv4: z.boolean().default(true),
72
+
73
+ /**
74
+ * Whether to return IPv6 subnets or filter them out.
75
+ *
76
+ * By default, is set to `true`.
77
+ */
78
+ ipv6: z.boolean().default(true),
65
79
  },
66
80
 
67
81
  inputs: {
package/src/wireguard.ts CHANGED
@@ -733,6 +733,14 @@ export const nodeK8s = defineUnit({
733
733
  * By default, is false.
734
734
  */
735
735
  allowClusterPods: z.boolean().default(false),
736
+
737
+ /**
738
+ * Whether to drop all traffic from the interface using ip rule with priority 100.
739
+ *
740
+ * This is useful for preventing the traffic leaks before upstream node is attached via `downstreamInterface` input.
741
+ * They will add their own ip rule with <100 priority which allows traffic from the interface.
742
+ */
743
+ lockdownUpstream: z.boolean().default(false),
736
744
  },
737
745
 
738
746
  inputs: {
@@ -841,6 +849,14 @@ export const nodeFeedK8s = defineUnit({
841
849
  */
842
850
  forwardRestrictedSubnets: z.string().array().default([]),
843
851
 
852
+ /**
853
+ * Whether to drop all traffic from the interface using ip rule with priority 100.
854
+ *
855
+ * This is useful for preventing the traffic leaks before upstream node is attached via `downstreamInterface` input.
856
+ * They will add their own ip rule with <100 priority which allows traffic from the interface.
857
+ */
858
+ lockdownUpstream: z.boolean().default(false),
859
+
844
860
  /**
845
861
  * The extra specification of the container which runs the wg-feed daemon.
846
862
  *
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Exeteres
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.