@hyperfixi/intent-element 2.7.2 → 2.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/intent-element",
3
- "version": "2.7.2",
3
+ "version": "2.9.0",
4
4
  "description": "<lse-intent> custom element — validates LSE protocol JSON and executes it via the hyperfixi runtime.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -30,7 +30,8 @@
30
30
  "dist",
31
31
  "src",
32
32
  "LICENSE",
33
- "README.md"
33
+ "README.md",
34
+ "CHANGELOG.md"
34
35
  ],
35
36
  "keywords": [
36
37
  "lse",
@@ -43,10 +44,10 @@
43
44
  "author": "LokaScript Contributors",
44
45
  "license": "MIT",
45
46
  "dependencies": {
46
- "@lokascript/intent": "^2.7.2"
47
+ "@lokascript/intent": "^2.9.0"
47
48
  },
48
49
  "peerDependencies": {
49
- "@hyperfixi/core": "^2.7.2"
50
+ "@hyperfixi/core": "^2.9.0"
50
51
  },
51
52
  "peerDependenciesMeta": {
52
53
  "@hyperfixi/core": {
@@ -54,7 +55,7 @@
54
55
  }
55
56
  },
56
57
  "devDependencies": {
57
- "@hyperfixi/core": "^2.7.2",
58
+ "@hyperfixi/core": "^2.9.0",
58
59
  "@types/node": "^20.0.0",
59
60
  "tsup": "^8.0.0",
60
61
  "typescript": "^5.0.0",
package/src/index.test.ts CHANGED
@@ -98,7 +98,7 @@ describe('intentRegistry', () => {
98
98
  });
99
99
 
100
100
  it('loadFrom() throws for non-array response', async () => {
101
- global.fetch = vi.fn().mockResolvedValue({
101
+ globalThis.fetch = vi.fn().mockResolvedValue({
102
102
  ok: true,
103
103
  json: async () => ({ action: 'toggle' }), // object, not array
104
104
  } as unknown as Response);
@@ -108,7 +108,7 @@ describe('intentRegistry', () => {
108
108
  });
109
109
 
110
110
  it('loadFrom() throws for schema missing action field', async () => {
111
- global.fetch = vi.fn().mockResolvedValue({
111
+ globalThis.fetch = vi.fn().mockResolvedValue({
112
112
  ok: true,
113
113
  json: async () => [{ roles: [] }], // missing action
114
114
  } as unknown as Response);
@@ -118,7 +118,7 @@ describe('intentRegistry', () => {
118
118
  });
119
119
 
120
120
  it('loadFrom() throws for HTTP error', async () => {
121
- global.fetch = vi.fn().mockResolvedValue({
121
+ globalThis.fetch = vi.fn().mockResolvedValue({
122
122
  ok: false,
123
123
  status: 404,
124
124
  statusText: 'Not Found',