@xyo-network/filesystem-archivist 4.3.0 → 5.0.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": "@xyo-network/filesystem-archivist",
3
- "version": "4.3.0",
3
+ "version": "5.0.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,23 +29,27 @@
29
29
  },
30
30
  "module": "dist/node/index.mjs",
31
31
  "types": "dist/node/index.d.ts",
32
+ "files": [
33
+ "dist",
34
+ "src"
35
+ ],
32
36
  "dependencies": {
33
- "@xylabs/assert": "^4.15.0",
34
- "@xylabs/hex": "^4.15.0",
35
- "@xylabs/promise": "^4.15.0",
36
- "@xyo-network/archivist-abstract": "^4.3.0",
37
- "@xyo-network/archivist-memory": "^4.3.0",
38
- "@xyo-network/archivist-model": "^4.3.0",
39
- "@xyo-network/boundwitness-model": "^4.3.0",
40
- "@xyo-network/module-model": "^4.3.0",
41
- "@xyo-network/payload-model": "^4.3.0",
42
- "@xyo-network/wallet": "^4.3.0"
37
+ "@xylabs/assert": "^5.0.0",
38
+ "@xylabs/hex": "^5.0.0",
39
+ "@xylabs/promise": "^5.0.0",
40
+ "@xyo-network/archivist-abstract": "^5.0.0",
41
+ "@xyo-network/archivist-memory": "^5.0.0",
42
+ "@xyo-network/archivist-model": "^5.0.0",
43
+ "@xyo-network/boundwitness-model": "^5.0.0",
44
+ "@xyo-network/module-model": "^5.0.0",
45
+ "@xyo-network/payload-model": "^5.0.0",
46
+ "@xyo-network/wallet": "^5.0.0"
43
47
  },
44
48
  "devDependencies": {
45
- "@xylabs/error": "^4.15.0",
46
- "@xylabs/ts-scripts-yarn3": "^7.0.1",
47
- "@xylabs/tsconfig": "^7.0.1",
48
- "@xylabs/vitest-extended": "^4.15.0",
49
+ "@xylabs/error": "^5.0.0",
50
+ "@xylabs/ts-scripts-yarn3": "^7.0.2",
51
+ "@xylabs/tsconfig": "^7.0.2",
52
+ "@xylabs/vitest-extended": "^5.0.0",
49
53
  "typescript": "^5.8.3",
50
54
  "vitest": "^3.2.4"
51
55
  },
@@ -0,0 +1,22 @@
1
+ import '@xylabs/vitest-extended'
2
+
3
+ import { expect, test } from 'vitest'
4
+
5
+ import { FilesystemArchivist, FilesystemArchivistConfigSchema } from '../FilesystemArchivist.ts'
6
+
7
+ /**
8
+ * @group module
9
+ * @group archivist
10
+ */
11
+
12
+ test('FilesystemArchivist Load', async () => {
13
+ const archivist = (await FilesystemArchivist.create({
14
+ account: 'random',
15
+ config: {
16
+ filePath: './packages/modules/packages/archivist/packages/filesystem/src/sample.archivist.xyo.json',
17
+ schema: FilesystemArchivistConfigSchema,
18
+ },
19
+ })) as FilesystemArchivist
20
+ const all = await archivist.all()
21
+ expect(all.length).toBe(4)
22
+ })
package/xy.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
- const config: XyTsupConfig = {
3
- compile: {
4
- browser: {},
5
- node: { src: true },
6
- neutral: {},
7
- },
8
- }
9
-
10
- export default config