@kulupu-linku/sona 2.0.2 → 2.1.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.
Files changed (79) hide show
  1. package/dist/{index-1jX6YIBj.d.ts → index-7uKIarVW.d.mts} +6 -8
  2. package/dist/{client-BSyS8F5a.d.ts → lib/v1/client.d.mts} +55 -57
  3. package/dist/{client-BitJ28pJ.js → lib/v1/client.mjs} +1 -3
  4. package/dist/lib/v1/{client.test.d.ts → client.test.d.mts} +2 -3
  5. package/dist/lib/v1/client.test.mjs +2 -0
  6. package/dist/lib/v1/{index.d.ts → index.d.mts} +1 -1
  7. package/dist/{v1-DkHVwPCI.js → lib/v1/index.mjs} +2 -4
  8. package/dist/lib/v1/{types.d.ts → types.d.mts} +1 -1
  9. package/dist/lib/v1/types.mjs +1 -0
  10. package/dist/lib/v1/{utils.d.ts → utils.d.mts} +1 -1
  11. package/dist/{utils-QiKwNnnL.js → lib/v1/utils.mjs} +1 -3
  12. package/dist/{client-CUMo53JZ.d.ts → lib/v2/client.d.mts} +55 -57
  13. package/dist/{client-DNWH1gFt.js → lib/v2/client.mjs} +1 -3
  14. package/dist/lib/v2/{client.test.d.ts → client.test.d.mts} +2 -3
  15. package/dist/lib/v2/client.test.mjs +2 -0
  16. package/dist/lib/v2/{index.d.ts → index.d.mts} +1 -1
  17. package/dist/{v2-CDtbJFxV.js → lib/v2/index.mjs} +3 -5
  18. package/dist/lib/v2/{types.d.ts → types.d.mts} +1 -1
  19. package/dist/lib/v2/types.mjs +1 -0
  20. package/dist/lib/v2/{utils.d.ts → utils.d.mts} +1 -1
  21. package/dist/{utils-Z1o5sWsW.js → lib/v2/utils.mjs} +1 -3
  22. package/dist/server/index.d.mts +2 -0
  23. package/dist/server/{index.js → index.mjs} +4 -12
  24. package/dist/server/{utils.d.ts → utils.d.mts} +5 -5
  25. package/dist/{utils-DkAaVBMs.js → server/utils.mjs} +2 -4
  26. package/dist/server/v1/{index.d.ts → index.d.mts} +4 -4
  27. package/dist/server/v1/index.mjs +2 -0
  28. package/dist/server/v2/{index.d.ts → index.d.mts} +4 -4
  29. package/dist/server/v2/index.mjs +2 -0
  30. package/dist/server/{versioning.d.ts → versioning.d.mts} +6 -6
  31. package/dist/server/versioning.mjs +2 -0
  32. package/dist/{v1-obRCoWWK.js → v1-Da4_o5R1.mjs} +9 -15
  33. package/generated/v1/commentary_translation.json +1 -1
  34. package/generated/v1/definition_translation.json +1 -1
  35. package/generated/v1/etymology_translation.json +2 -4
  36. package/generated/v1/fingerspelling.json +5 -20
  37. package/generated/v1/fingerspelling_sign.json +4 -16
  38. package/generated/v1/font.json +1 -1
  39. package/generated/v1/fonts.json +1 -1
  40. package/generated/v1/icon_translation.json +1 -1
  41. package/generated/v1/languages.json +4 -14
  42. package/generated/v1/parameters_translation.json +1 -1
  43. package/generated/v1/sign.json +3 -8
  44. package/generated/v1/signs.json +4 -12
  45. package/generated/v1/sitelen_pona_translation.json +1 -1
  46. package/generated/v1/word.json +6 -29
  47. package/generated/v2/fingerspelling.json +124 -64
  48. package/generated/v2/fingerspellings.json +178 -115
  49. package/generated/v2/font.json +109 -64
  50. package/generated/v2/fonts.json +160 -112
  51. package/generated/v2/glyph.json +72 -46
  52. package/generated/v2/glyphs.json +171 -142
  53. package/generated/v2/language.json +34 -16
  54. package/generated/v2/languages.json +75 -56
  55. package/generated/v2/sign.json +149 -77
  56. package/generated/v2/signs.json +212 -137
  57. package/generated/v2/word.json +298 -155
  58. package/generated/v2/words.json +416 -270
  59. package/package.json +44 -32
  60. package/dist/.assetsignore +0 -0
  61. package/dist/lib/v1/client.d.ts +0 -3
  62. package/dist/lib/v1/client.js +0 -3
  63. package/dist/lib/v1/client.test.js +0 -3
  64. package/dist/lib/v1/index.js +0 -4
  65. package/dist/lib/v1/types.js +0 -1
  66. package/dist/lib/v1/utils.js +0 -3
  67. package/dist/lib/v2/client.d.ts +0 -3
  68. package/dist/lib/v2/client.js +0 -3
  69. package/dist/lib/v2/client.test.js +0 -3
  70. package/dist/lib/v2/index.js +0 -4
  71. package/dist/lib/v2/types.js +0 -1
  72. package/dist/lib/v2/utils.js +0 -3
  73. package/dist/server/index.d.ts +0 -2
  74. package/dist/server/utils.js +0 -3
  75. package/dist/server/v1/index.js +0 -8
  76. package/dist/server/v2/index.js +0 -8
  77. package/dist/server/versioning.js +0 -8
  78. /package/dist/{index-DObG_APy.d.ts → index-N8h8E1s6.d.mts} +0 -0
  79. /package/dist/{index-DsVEVr6r.d.ts → index-nmyNJa57.d.mts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kulupu-linku/sona",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "A library providing TypeScript types and Zod schemas for the sona API",
5
5
  "homepage": "https://linku.la/",
6
6
  "bugs": {
@@ -20,42 +20,31 @@
20
20
  }
21
21
  ],
22
22
  "repository": {
23
+ "type": "git",
23
24
  "url": "https://github.com/lipu-linku/sona.git",
24
- "directory": "api",
25
- "type": "git"
26
- },
27
- "dependencies": {
28
- "@hono/zod-validator": "^0.7.4",
29
- "hono": "^4.10.4",
30
- "p-lazy": "^5.0.0",
31
- "zod": "^4.1.12"
32
- },
33
- "devDependencies": {
34
- "@cloudflare/vite-plugin": "1.11.7",
35
- "@hono/vite-build": "^1.7.0",
36
- "@hono/vite-dev-server": "^0.20.1",
37
- "@types/node": "^24.10.0",
38
- "ajv": "^8.17.1",
39
- "ajv-cli": "^5.0.0",
40
- "ajv-formats": "^3.0.1",
41
- "prettier": "^3.6.2",
42
- "tsdown": "^0.14.2",
43
- "tsx": "^4.20.6",
44
- "typescript": "^5.9.3",
45
- "vite": "npm:rolldown-vite@^7.2.2",
46
- "wrangler": "4.32.0"
47
- },
48
- "engines": {
49
- "pnpm": ">=10"
25
+ "directory": "api"
50
26
  },
51
27
  "files": [
52
28
  "/dist",
53
29
  "/generated"
54
30
  ],
55
- "main": "./dist/lib/v1/index.js",
56
- "module": "./dist/lib/v1/index.js",
57
- "types": "./dist/lib/v1/index.d.ts",
31
+ "type": "module",
32
+ "main": "./dist/lib/v2/index.js",
33
+ "module": "./dist/lib/v2/index.js",
34
+ "types": "./dist/lib/v2/index.d.ts",
58
35
  "exports": {
36
+ ".": {
37
+ "import": "./dist/lib/v2/index.js",
38
+ "types": "./dist/lib/v2/index.d.ts"
39
+ },
40
+ "./utils": {
41
+ "import": "./dist/lib/v2/utils.js",
42
+ "types": "./dist/lib/v2/utils.d.ts"
43
+ },
44
+ "./client": {
45
+ "import": "./dist/lib/v2/client.js",
46
+ "types": "./dist/lib/v2/client.d.ts"
47
+ },
59
48
  "./v1": {
60
49
  "import": "./dist/lib/v1/index.js",
61
50
  "types": "./dist/lib/v1/index.d.ts"
@@ -81,7 +70,29 @@
81
70
  "types": "./dist/lib/v2/client.d.ts"
82
71
  }
83
72
  },
84
- "type": "module",
73
+ "dependencies": {
74
+ "@hono/zod-validator": "^0.7.6",
75
+ "hono": "^4.12.10",
76
+ "p-lazy": "^5.0.0",
77
+ "zod": "^4.3.6"
78
+ },
79
+ "devDependencies": {
80
+ "@cloudflare/vite-plugin": "1.31.0",
81
+ "@hono/vite-build": "^1.11.1",
82
+ "@hono/vite-dev-server": "^0.25.1",
83
+ "@types/node": "^25.5.2",
84
+ "ajv": "^8.18.0",
85
+ "ajv-cli": "^5.0.0",
86
+ "ajv-formats": "^3.0.1",
87
+ "tsdown": "^0.21.7",
88
+ "tsx": "^4.21.0",
89
+ "typescript": "^6.0.2",
90
+ "vite": "^8.0.3",
91
+ "wrangler": "4.80.0"
92
+ },
93
+ "engines": {
94
+ "pnpm": ">=10"
95
+ },
85
96
  "scripts": {
86
97
  "dev": "vite",
87
98
  "build": "vite build",
@@ -90,6 +101,7 @@
90
101
  "prod": "vite preview",
91
102
  "generate": "tsx ./generateSchemas.ts",
92
103
  "generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts",
93
- "format": "prettier --write ."
104
+ "format": "oxfmt .",
105
+ "lint": "oxlint"
94
106
  }
95
107
  }
File without changes
@@ -1,3 +0,0 @@
1
- import "../../index-1jX6YIBj.js";
2
- import { n as client, t as ApiType } from "../../client-BSyS8F5a.js";
3
- export { ApiType, client };
@@ -1,3 +0,0 @@
1
- import { t as client } from "../../client-BitJ28pJ.js";
2
-
3
- export { client };
@@ -1,3 +0,0 @@
1
- import "../../client-BitJ28pJ.js";
2
-
3
- export { };
@@ -1,4 +0,0 @@
1
- import "../../utils-QiKwNnnL.js";
2
- import { a as FingerspellingSign, c as IconTranslation, d as Sign, f as Signs, h as Words, i as Fingerspelling, l as Languages, m as Word, n as DefinitionTranslation, o as Font, p as SitelenPonaTranslation, r as EtymologyTranslation, s as Fonts, t as CommentaryTranslation, u as ParametersTranslation } from "../../v1-DkHVwPCI.js";
3
-
4
- export { CommentaryTranslation, DefinitionTranslation, EtymologyTranslation, Fingerspelling, FingerspellingSign, Font, Fonts, IconTranslation, Languages, ParametersTranslation, Sign, Signs, SitelenPonaTranslation, Word, Words };
@@ -1 +0,0 @@
1
- export { };
@@ -1,3 +0,0 @@
1
- import { a as getTranslatedData, i as WritingSystem, n as CoinedEra, r as UsageCategory, t as Book } from "../../utils-QiKwNnnL.js";
2
-
3
- export { Book, CoinedEra, UsageCategory, WritingSystem, getTranslatedData };
@@ -1,3 +0,0 @@
1
- import "../../index-1jX6YIBj.js";
2
- import { n as client, t as ApiType } from "../../client-CUMo53JZ.js";
3
- export { ApiType, client };
@@ -1,3 +0,0 @@
1
- import { t as client } from "../../client-DNWH1gFt.js";
2
-
3
- export { client };
@@ -1,3 +0,0 @@
1
- import "../../client-DNWH1gFt.js";
2
-
3
- export { };
@@ -1,4 +0,0 @@
1
- import "../../utils-Z1o5sWsW.js";
2
- import { a as Glyph, c as Languages, d as Word, f as Words, i as Fonts, l as Sign, n as Fingerspellings, o as Glyphs, r as Font, s as Language, t as Fingerspelling, u as Signs } from "../../v2-CDtbJFxV.js";
3
-
4
- export { Fingerspelling, Fingerspellings, Font, Fonts, Glyph, Glyphs, Language, Languages, Sign, Signs, Word, Words };
@@ -1 +0,0 @@
1
- export { };
@@ -1,3 +0,0 @@
1
- import { a as Score, c as getTranslatedData, i as OptionalDate, n as Date, o as UsageCategory, r as Era, s as WritingSystem, t as Book } from "../../utils-Z1o5sWsW.js";
2
-
3
- export { Book, Date, Era, OptionalDate, Score, UsageCategory, WritingSystem, getTranslatedData };
@@ -1,2 +0,0 @@
1
- import { n as app, t as AppType } from "../index-1jX6YIBj.js";
2
- export { AppType, app as default };
@@ -1,3 +0,0 @@
1
- import { a as langIdCoalesce, i as keys, n as filterObject, o as langValidator, r as joinPath, s as mergeToKey, t as entries } from "../utils-DkAaVBMs.js";
2
-
3
- export { entries, filterObject, joinPath, keys, langIdCoalesce, langValidator, mergeToKey };
@@ -1,8 +0,0 @@
1
- import "../../utils-QiKwNnnL.js";
2
- import "../../v1-DkHVwPCI.js";
3
- import "../../utils-DkAaVBMs.js";
4
- import "../../utils-Z1o5sWsW.js";
5
- import "../../v2-CDtbJFxV.js";
6
- import { n as languagesFilter, r as v1_default, t as config } from "../../v1-obRCoWWK.js";
7
-
8
- export { config, v1_default as default, languagesFilter };
@@ -1,8 +0,0 @@
1
- import "../../utils-QiKwNnnL.js";
2
- import "../../v1-DkHVwPCI.js";
3
- import "../../utils-DkAaVBMs.js";
4
- import "../../utils-Z1o5sWsW.js";
5
- import "../../v2-CDtbJFxV.js";
6
- import { c as fetchData, l as v2_default, s as config } from "../../v1-obRCoWWK.js";
7
-
8
- export { config, v2_default as default, fetchData };
@@ -1,8 +0,0 @@
1
- import "../utils-QiKwNnnL.js";
2
- import "../v1-DkHVwPCI.js";
3
- import "../utils-DkAaVBMs.js";
4
- import "../utils-Z1o5sWsW.js";
5
- import "../v2-CDtbJFxV.js";
6
- import { a as fetchFile, i as apps, o as versions } from "../v1-obRCoWWK.js";
7
-
8
- export { apps, fetchFile, versions };