@ankhorage/surface 9.4.5 → 9.4.6
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 +6 -0
- package/README.md +1 -1
- package/package.json +3 -3
- package/src/capabilities/index.test.ts +18 -9
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/surface
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Cross-platform UI foundation for React Native and React Native Web. Provides theming, layout primitives, and core building blocks for modern apps.
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/surface",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.4.
|
|
4
|
+
"version": "9.4.6",
|
|
5
5
|
"description": "Stable UI foundation for React Native and React Native Web.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/surface#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"react-native-worklets": "0.10.1 || 0.13.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ankhorage/capability": "^0.2.1",
|
|
47
46
|
"@ankhorage/color-theory": "^0.3.1",
|
|
48
47
|
"@ankhorage/contracts": "^26.0.0",
|
|
49
48
|
"@ankhorage/utility": "^1.9.85",
|
|
@@ -113,7 +112,8 @@
|
|
|
113
112
|
"version-packages": "ankhorage-changeset version"
|
|
114
113
|
},
|
|
115
114
|
"devDependencies": {
|
|
116
|
-
"@ankhorage/
|
|
115
|
+
"@ankhorage/capability": "^0.2.1",
|
|
116
|
+
"@ankhorage/devtools": "^2.3.16",
|
|
117
117
|
"@ankhorage/paradox": "^0.3.1",
|
|
118
118
|
"@react-native-vector-icons/fontawesome": "^13.1.4",
|
|
119
119
|
"@react-native-vector-icons/fontawesome5": "^13.1.4",
|
|
@@ -5,15 +5,19 @@ import { expect, test } from 'bun:test';
|
|
|
5
5
|
|
|
6
6
|
import { CAPABILITIES } from './index';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
8
|
+
const packageManifest = JSON.parse(
|
|
9
|
+
readFileSync(new URL('../../package.json', import.meta.url), 'utf8'),
|
|
10
|
+
) as {
|
|
11
|
+
readonly ankh?: {
|
|
12
|
+
readonly capabilities?: unknown;
|
|
13
|
+
readonly category?: unknown;
|
|
14
|
+
readonly provider?: unknown;
|
|
15
|
+
};
|
|
16
|
+
readonly dependencies?: Readonly<Record<string, string>>;
|
|
17
|
+
readonly devDependencies?: Readonly<Record<string, string>>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const packageMetadata = packageManifest.ankh;
|
|
17
21
|
|
|
18
22
|
test('publishes a valid and uniquely identified canonical Surface theme capability', () => {
|
|
19
23
|
expect(CAPABILITIES).toHaveLength(1);
|
|
@@ -43,6 +47,11 @@ test('keeps Ankh package metadata identical to the canonical Surface catalog', (
|
|
|
43
47
|
expect(packageMetadata?.capabilities).toEqual(CAPABILITIES);
|
|
44
48
|
});
|
|
45
49
|
|
|
50
|
+
test('keeps capability validation development-only', () => {
|
|
51
|
+
expect(packageManifest.dependencies?.['@ankhorage/capability']).toBeUndefined();
|
|
52
|
+
expect(packageManifest.devDependencies?.['@ankhorage/capability']).toMatch(/^\^\d+\.\d+\.\d+$/u);
|
|
53
|
+
});
|
|
54
|
+
|
|
46
55
|
test('exports the catalog from the public capabilities subpath', async () => {
|
|
47
56
|
const capabilities = await import('@ankhorage/surface/capabilities');
|
|
48
57
|
|