tcdona_unilib 1.0.11 → 1.0.14

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 (72) hide show
  1. package/.prettierrc.json +6 -0
  2. package/animejs.ts +13 -1
  3. package/ast-grep.ts +42 -0
  4. package/big.ts +2 -2
  5. package/clipboardy.ts +1 -1
  6. package/dayjs.ts +2 -2
  7. package/dotenvx.ts +15 -2
  8. package/eff/aff.ts +161 -0
  9. package/eff/aff.util.ts +218 -0
  10. package/eff/eff.delay.ts +21 -0
  11. package/eff/eff.ts +225 -0
  12. package/eff/effcan.ts +286 -0
  13. package/eff/throwable.ts +11 -0
  14. package/effector.ts +33 -2
  15. package/es-toolkit.ts +1 -7
  16. package/exome.ts +10 -2
  17. package/hono.ts +18 -2
  18. package/hotkeys-js.ts +3 -2
  19. package/idmeta.json +42 -0
  20. package/inquirer.ts +1 -1
  21. package/koka/async.ts +2 -7
  22. package/koka/ctx.ts +2 -9
  23. package/koka/err.ts +2 -9
  24. package/koka/gen.ts +2 -9
  25. package/koka/index.ts +1 -1
  26. package/koka/opt.ts +2 -7
  27. package/koka/result.ts +6 -9
  28. package/koka/task.ts +2 -8
  29. package/koka-domain.ts +13 -16
  30. package/koka.ts +29 -34
  31. package/magic-regexp.ts +28 -2
  32. package/marked.ts +28 -2
  33. package/nanoid.ts +7 -1
  34. package/nanostores.ts +31 -2
  35. package/neverthrow.ts +2 -2
  36. package/package.json +24 -33
  37. package/pathe.ts +16 -1
  38. package/pinyin-pro.ts +16 -2
  39. package/prettier.ts +20 -2
  40. package/staticMeta/enum.api.ts +111 -82
  41. package/staticMeta/err.ts +64 -0
  42. package/staticMeta/file.yml.ts +22 -13
  43. package/staticMeta/md.html2md.ts +38 -0
  44. package/staticMeta/md.md2html.ts +203 -0
  45. package/staticMeta/path.init.ts +12 -12
  46. package/staticMeta/string.nanoid.ts +7 -7
  47. package/staticMeta/url.ts +57 -54
  48. package/tinypool.ts +29 -2
  49. package/turndown.ts +1 -1
  50. package/vite.ts +2 -2
  51. package/viteplugin/md.plugin.dist.d.ts +18 -0
  52. package/viteplugin/md.plugin.dist.js +1133 -0
  53. package/viteplugin/md.plugin.ts +22 -0
  54. package/viteplugin/vite-env.d.ts +6 -0
  55. package/viteplugin/vite.config.ts +62 -0
  56. package/vue.ts +2 -12
  57. package/zod.ts +19 -2
  58. package/zx.ts +25 -1
  59. package/@ast-grep.ts +0 -18
  60. package/comctx.ts +0 -2
  61. package/hono/cors.ts +0 -1
  62. package/hono/logger.ts +0 -1
  63. package/hono/timeout.ts +0 -1
  64. package/staticMeta/ast.scan.ts +0 -131
  65. package/staticMeta/ast.ts +0 -259
  66. package/staticMeta/eff.delay.ts +0 -17
  67. package/staticMeta/eff.ts +0 -203
  68. package/staticMeta/iduniq.ts +0 -320
  69. package/staticMeta/idupdate.ts +0 -374
  70. package/staticMeta/pkg.json.ts +0 -138
  71. package/staticMeta/project.ts +0 -98
  72. package/staticMeta/sync.ts +0 -296
package/koka/async.ts CHANGED
@@ -1,9 +1,4 @@
1
1
  // Async effect types and utilities from 'koka'
2
- export type {
3
- Async,
4
- MaybePromise,
5
- } from 'koka'
2
+ export type { Async, MaybePromise } from 'koka'
6
3
 
7
- export {
8
- Eff,
9
- } from 'koka'
4
+ export { Eff } from 'koka'
package/koka/ctx.ts CHANGED
@@ -1,11 +1,4 @@
1
1
  // Context effect types and utilities from 'koka'
2
- export type {
3
- Ctx,
4
- AnyCtx,
5
- CtxValue,
6
- } from 'koka'
2
+ export type { Ctx, AnyCtx, CtxValue } from 'koka'
7
3
 
8
- export {
9
- Eff,
10
- EffSymbol,
11
- } from 'koka'
4
+ export { Eff, EffSymbol } from 'koka'
package/koka/err.ts CHANGED
@@ -1,11 +1,4 @@
1
1
  // Error effect types and utilities from 'koka'
2
- export type {
3
- Err,
4
- AnyErr,
5
- ExtractErr,
6
- ExcludeErr,
7
- } from 'koka'
2
+ export type { Err, AnyErr, ExtractErr, ExcludeErr } from 'koka'
8
3
 
9
- export {
10
- Eff,
11
- } from 'koka'
4
+ export { Eff } from 'koka'
package/koka/gen.ts CHANGED
@@ -1,11 +1,4 @@
1
1
  // Generator utilities and stream types from 'koka'
2
- export type {
3
- StreamResult,
4
- StreamResults,
5
- StreamHandler,
6
- } from 'koka'
2
+ export type { StreamResult, StreamResults, StreamHandler } from 'koka'
7
3
 
8
- export {
9
- Eff,
10
- isGenerator,
11
- } from 'koka'
4
+ export { Eff, isGenerator } from 'koka'
package/koka/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Main koka re-export file - exports everything from koka
2
- export * from '../koka.ts'
2
+ export * from '../koka.ts'
package/koka/opt.ts CHANGED
@@ -1,9 +1,4 @@
1
1
  // Optional context effect types and utilities from 'koka'
2
- export type {
3
- Opt,
4
- AnyOpt,
5
- } from 'koka'
2
+ export type { Opt, AnyOpt } from 'koka'
6
3
 
7
- export {
8
- Eff,
9
- } from 'koka'
4
+ export { Eff } from 'koka'
package/koka/result.ts CHANGED
@@ -1,13 +1,10 @@
1
1
  // Result types and utilities from 'koka'
2
2
  export type {
3
- Ok,
4
- AnyOk,
5
- Result as ResultType,
6
- AnyResult,
7
- InferOkValue,
3
+ Ok,
4
+ AnyOk,
5
+ Result as ResultType,
6
+ AnyResult,
7
+ InferOkValue,
8
8
  } from 'koka'
9
9
 
10
- export {
11
- Result,
12
- Eff,
13
- } from 'koka'
10
+ export { Result, Eff } from 'koka'
package/koka/task.ts CHANGED
@@ -1,10 +1,4 @@
1
1
  // Task types and utilities from 'koka'
2
- export type {
3
- Task,
4
- MaybeFunction,
5
- } from 'koka'
2
+ export type { Task, MaybeFunction } from 'koka'
6
3
 
7
- export {
8
- Eff,
9
- isGenerator,
10
- } from 'koka'
4
+ export { Eff, isGenerator } from 'koka'
package/koka-domain.ts CHANGED
@@ -1,21 +1,18 @@
1
1
  // Type exports from 'koka-domain'
2
2
  export type {
3
- DomainErr,
4
- Getter,
5
- Updater,
6
- Setter,
7
- DomainOptions,
8
- MaybeDomainEff,
9
- Selector,
10
- InferDomainState,
11
- InferDomainRoot,
12
- AnyDomain,
13
- NestedArray,
14
- NestedReadonlyArray,
3
+ DomainErr,
4
+ Getter,
5
+ Updater,
6
+ Setter,
7
+ DomainOptions,
8
+ MaybeDomainEff,
9
+ Selector,
10
+ InferDomainState,
11
+ InferDomainRoot,
12
+ AnyDomain,
13
+ NestedArray,
14
+ NestedReadonlyArray,
15
15
  } from 'koka-domain'
16
16
 
17
17
  // Value exports from 'koka-domain'
18
- export {
19
- getDomainValue,
20
- Domain,
21
- } from 'koka-domain'
18
+ export { getDomainValue, Domain } from 'koka-domain'
package/koka.ts CHANGED
@@ -1,39 +1,34 @@
1
1
  // Type exports from 'koka'
2
2
  export type {
3
- Err,
4
- AnyErr,
5
- Ctx,
6
- Opt,
7
- AnyCtx,
8
- Async,
9
- AnyOpt,
10
- Msg,
11
- AnyMsg,
12
- SendMsg,
13
- WaitMsg,
14
- EffType,
15
- AnyEff,
16
- EffectHandlers,
17
- ExtractErr,
18
- ExcludeErr,
19
- Ok,
20
- AnyOk,
21
- AnyResult,
22
- InferOkValue,
23
- Task,
24
- MaybePromise,
25
- MaybeFunction,
26
- CtxValue,
27
- MsgValue,
28
- StreamResult,
29
- StreamResults,
30
- StreamHandler,
3
+ Err,
4
+ AnyErr,
5
+ Ctx,
6
+ Opt,
7
+ AnyCtx,
8
+ Async,
9
+ AnyOpt,
10
+ Msg,
11
+ AnyMsg,
12
+ SendMsg,
13
+ WaitMsg,
14
+ EffType,
15
+ AnyEff,
16
+ EffectHandlers,
17
+ ExtractErr,
18
+ ExcludeErr,
19
+ Ok,
20
+ AnyOk,
21
+ AnyResult,
22
+ InferOkValue,
23
+ Task,
24
+ MaybePromise,
25
+ MaybeFunction,
26
+ CtxValue,
27
+ MsgValue,
28
+ StreamResult,
29
+ StreamResults,
30
+ StreamHandler,
31
31
  } from 'koka'
32
32
 
33
33
  // Value exports from 'koka'
34
- export {
35
- EffSymbol,
36
- Result,
37
- Eff,
38
- isGenerator
39
- } from 'koka'
34
+ export { EffSymbol, Result, Eff, isGenerator } from 'koka'
package/magic-regexp.ts CHANGED
@@ -1,2 +1,28 @@
1
- export { createRegExp, exactly, oneOrMore, anyOf, char, charIn, charNotIn, word, wordChar, wordBoundary, digit, whitespace, letter, tab, linefeed, carriageReturn, not, maybe, global, multiline, caseInsensitive, sticky, unicode, dotAll, withIndices } from 'magic-regexp';
2
- export type { Input, MagicRegExp } from 'magic-regexp';
1
+ export {
2
+ createRegExp,
3
+ exactly,
4
+ oneOrMore,
5
+ anyOf,
6
+ char,
7
+ charIn,
8
+ charNotIn,
9
+ word,
10
+ wordChar,
11
+ wordBoundary,
12
+ digit,
13
+ whitespace,
14
+ letter,
15
+ tab,
16
+ linefeed,
17
+ carriageReturn,
18
+ not,
19
+ maybe,
20
+ global,
21
+ multiline,
22
+ caseInsensitive,
23
+ sticky,
24
+ unicode,
25
+ dotAll,
26
+ withIndices,
27
+ } from 'magic-regexp'
28
+ export type { Input, MagicRegExp } from 'magic-regexp'
package/marked.ts CHANGED
@@ -1,2 +1,28 @@
1
- export { marked, Marked, Lexer, Parser, Tokenizer, Renderer, TextRenderer, Hooks, getDefaults, setOptions, use, parse, parseInline, lexer, parser, walkTokens } from 'marked';
2
- export type { Token, Tokens, TokensList, MarkedExtension, MarkedOptions, RendererObject, TokenizerObject, TokenizerExtension } from 'marked';
1
+ export {
2
+ marked,
3
+ Marked,
4
+ Lexer,
5
+ Parser,
6
+ Tokenizer,
7
+ Renderer,
8
+ TextRenderer,
9
+ Hooks,
10
+ getDefaults,
11
+ setOptions,
12
+ use,
13
+ parse,
14
+ parseInline,
15
+ lexer,
16
+ parser,
17
+ walkTokens,
18
+ } from 'marked'
19
+ export type {
20
+ Token,
21
+ Tokens,
22
+ TokensList,
23
+ MarkedExtension,
24
+ MarkedOptions,
25
+ RendererObject,
26
+ TokenizerObject,
27
+ TokenizerExtension,
28
+ } from 'marked'
package/nanoid.ts CHANGED
@@ -1 +1,7 @@
1
- export { nanoid, customAlphabet, customRandom, urlAlphabet, random } from 'nanoid';
1
+ export {
2
+ nanoid,
3
+ customAlphabet,
4
+ customRandom,
5
+ urlAlphabet,
6
+ random,
7
+ } from 'nanoid'
package/nanostores.ts CHANGED
@@ -1,2 +1,31 @@
1
- export { atom, map, deepMap, computed, onMount, onSet, onNotify, onStart, onStop, listenKeys, keepMount, task, startTask, allTasks, cleanTasks, batched, STORE_UNMOUNT_DELAY } from 'nanostores';
2
- export type { Atom, MapStore, DeepMapStore, ReadableAtom, WritableAtom, PreinitializedWritableAtom, MapStoreKeys, AnyStore, Store, StoreValue } from 'nanostores';
1
+ export {
2
+ atom,
3
+ map,
4
+ deepMap,
5
+ computed,
6
+ onMount,
7
+ onSet,
8
+ onNotify,
9
+ onStart,
10
+ onStop,
11
+ listenKeys,
12
+ keepMount,
13
+ task,
14
+ startTask,
15
+ allTasks,
16
+ cleanTasks,
17
+ batched,
18
+ STORE_UNMOUNT_DELAY,
19
+ } from 'nanostores'
20
+ export type {
21
+ Atom,
22
+ MapStore,
23
+ DeepMapStore,
24
+ ReadableAtom,
25
+ WritableAtom,
26
+ PreinitializedWritableAtom,
27
+ MapStoreKeys,
28
+ AnyStore,
29
+ Store,
30
+ StoreValue,
31
+ } from 'nanostores'
package/neverthrow.ts CHANGED
@@ -11,5 +11,5 @@ export {
11
11
  fromSafePromise,
12
12
  fromThrowable,
13
13
  safeTry,
14
- } from 'neverthrow';
15
- export type { Result as ResultType } from 'neverthrow';
14
+ } from 'neverthrow'
15
+ export type { Result as ResultType } from 'neverthrow'
package/package.json CHANGED
@@ -1,21 +1,20 @@
1
1
  {
2
2
  "name": "tcdona_unilib",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "description": "Unified dependency aggregation layer for shared libraries",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "exports": {
8
- "./astgrep": "./@ast-grep.ts",
9
- "./staticMeta/eff": "./staticMeta/eff.ts",
8
+ "./astgrep": "./ast-grep.ts",
9
+ "./eff/eff": "./eff/eff.ts",
10
+ "./eff/effcan": "./eff/effcan.ts",
11
+ "./eff/throwable": "./eff/throwable.ts",
12
+ "./staticMeta/enum.api": "./staticMeta/enum.api.ts",
10
13
  "./staticMeta/file": "./staticMeta/file.yml.ts",
11
14
  "./staticMeta/path": "./staticMeta/path.init.ts",
12
15
  "./staticMeta/string": "./staticMeta/string.nanoid.ts",
13
16
  "./staticMeta/url": "./staticMeta/url.ts",
14
- "./staticMeta/enum.api": "./staticMeta/enum.api.ts",
15
- "./staticMeta/iduniq": "./staticMeta/iduniq.ts",
16
- "./staticMeta/idupdate": "./staticMeta/idupdate.ts",
17
- "./staticMeta/pkgjson": "./staticMeta/pkg.json.ts",
18
- "./staticMeta/project": "./staticMeta/project.ts",
17
+ "./staticMeta/err": "./staticMeta/err.ts",
19
18
  "./neverthrow": "./neverthrow.ts",
20
19
  "./zod": "./zod.ts",
21
20
  "./zx": "./zx.ts",
@@ -30,59 +29,50 @@
30
29
  "./prettier": "./prettier.ts",
31
30
  "./turndown": "./turndown.ts",
32
31
  "./effector": "./effector.ts",
33
- "./comctx": "./comctx.ts",
34
32
  "./estk": "./es-toolkit.ts",
35
33
  "./magicreg": "./magic-regexp.ts",
36
34
  "./exome": "./exome.ts",
37
35
  "./vue": "./vue.ts",
38
36
  "./vite": "./vite.ts",
39
37
  "./hono": "./hono.ts",
40
- "./hono/cors": "./hono/cors.ts",
41
- "./hono/logger": "./hono/logger.ts",
42
- "./hono/timeout": "./hono/timeout.ts",
43
38
  "./hotkeys": "./hotkeys-js.ts",
44
39
  "./pinyinpro": "./pinyin-pro.ts",
45
40
  "./tinypool": "./tinypool.ts",
46
41
  "./dotenvx": "./dotenvx.ts",
47
42
  "./inquirer": "./inquirer.ts",
48
43
  "./koka": "./koka.ts",
49
- "./koka/err": "./koka/err.ts",
50
- "./koka/ctx": "./koka/ctx.ts",
51
- "./koka/opt": "./koka/opt.ts",
52
- "./koka/async": "./koka/async.ts",
53
- "./koka/result": "./koka/result.ts",
54
- "./koka/task": "./koka/task.ts",
55
- "./koka/gen": "./koka/gen.ts",
56
- "./koka-domain": "./koka-domain.ts"
44
+ "./koka-domain": "./koka-domain.ts",
45
+ "./viteplugin/*.js": "./viteplugin/*.js",
46
+ "./viteplugin/*.ts": "./viteplugin/*.ts"
57
47
  },
58
48
  "scripts": {
59
- "test": "echo \"Error: no test specified\" && exit 1",
60
- "pub": "bun run ./tc.pub.ts"
49
+ "test": "vitest",
50
+ "viteplugin": "vite build -c viteplugin/vite.config.ts"
61
51
  },
62
52
  "keywords": [],
63
53
  "author": "",
64
54
  "license": "ISC",
65
55
  "devDependencies": {
66
56
  "@types/bun": "^1.3.5",
67
- "@types/node": "^20.10.6",
68
- "vitest": "^4.0.16"
57
+ "@types/node": "^20.19.28"
69
58
  },
70
59
  "dependencies": {
71
- "@ast-grep/napi": "^0.40.3",
72
- "@dotenvx/dotenvx": "^1.51.2",
73
- "@inquirer/prompts": "^8.1.0",
60
+ "@ast-grep/napi": "^0.40.5",
61
+ "@dotenvx/dotenvx": "^1.51.4",
62
+ "@inquirer/prompts": "^8.2.0",
74
63
  "@types/big.js": "^6.2.2",
64
+ "@types/js-yaml": "^4.0.9",
75
65
  "@types/turndown": "^5.0.6",
76
- "animejs": "^4.1.3",
66
+ "animejs": "^4.2.2",
77
67
  "big.js": "^7.0.1",
78
68
  "clipboardy": "^5.0.2",
79
- "comctx": "^1.4.3",
80
69
  "dayjs": "^1.11.19",
81
70
  "effector": "^23.4.4",
82
71
  "es-toolkit": "^1.43.0",
83
- "exome": "^2.8.0",
72
+ "exome": "^2.8.1",
84
73
  "hono": "^4.11.3",
85
74
  "hotkeys-js": "^4.0.0",
75
+ "js-yaml": "^4.1.1",
86
76
  "koka": "^1.0.9",
87
77
  "koka-domain": "^1.0.0",
88
78
  "magic-regexp": "^0.10.0",
@@ -93,11 +83,12 @@
93
83
  "pathe": "^2.0.3",
94
84
  "pinyin-pro": "^3.27.0",
95
85
  "prettier": "^3.7.4",
96
- "tinypool": "^2.0.0",
86
+ "tinypool": "^2.1.0",
97
87
  "turndown": "^7.2.2",
98
- "vite": "^7.3.0",
88
+ "vite": "^7.3.1",
89
+ "vitest": "^4.0.17",
99
90
  "vue": "^3.5.26",
100
- "zod": "^4.2.1",
91
+ "zod": "^4.3.5",
101
92
  "zx": "^8.8.5"
102
93
  }
103
94
  }
package/pathe.ts CHANGED
@@ -1 +1,16 @@
1
- export { basename, delimiter, dirname, extname, format, isAbsolute, join, normalize, normalizeString, parse, relative, resolve, sep, toNamespacedPath } from 'pathe';
1
+ export {
2
+ basename,
3
+ delimiter,
4
+ dirname,
5
+ extname,
6
+ format,
7
+ isAbsolute,
8
+ join,
9
+ normalize,
10
+ normalizeString,
11
+ parse,
12
+ relative,
13
+ resolve,
14
+ sep,
15
+ toNamespacedPath,
16
+ } from 'pathe'
package/pinyin-pro.ts CHANGED
@@ -1,2 +1,16 @@
1
- export { getInitialAndFinal, getFinalParts, getNumOfTone, pinyin, customPinyin, clearCustomDict, addDict, removeDict, match, html, polyphonic, convert, segment } from 'pinyin-pro';
2
- export type { OutputFormat } from 'pinyin-pro';
1
+ export {
2
+ getInitialAndFinal,
3
+ getFinalParts,
4
+ getNumOfTone,
5
+ pinyin,
6
+ customPinyin,
7
+ clearCustomDict,
8
+ addDict,
9
+ removeDict,
10
+ match,
11
+ html,
12
+ polyphonic,
13
+ convert,
14
+ segment,
15
+ } from 'pinyin-pro'
16
+ export type { OutputFormat } from 'pinyin-pro'
package/prettier.ts CHANGED
@@ -1,2 +1,20 @@
1
- export { format, formatWithCursor, check, resolveConfig, resolveConfigFile, clearConfigCache, getFileInfo, getSupportInfo, doc, version } from 'prettier';
2
- export type { Options, Plugin, Printer, Parser, SupportLanguage, SupportOption } from 'prettier';
1
+ export {
2
+ format,
3
+ formatWithCursor,
4
+ check,
5
+ resolveConfig,
6
+ resolveConfigFile,
7
+ clearConfigCache,
8
+ getFileInfo,
9
+ getSupportInfo,
10
+ doc,
11
+ version,
12
+ } from 'prettier'
13
+ export type {
14
+ Options,
15
+ Plugin,
16
+ Printer,
17
+ Parser,
18
+ SupportLanguage,
19
+ SupportOption,
20
+ } from 'prettier'