taraskevizer 10.4.2 → 10.4.3

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/README.md CHANGED
@@ -10,10 +10,10 @@ If you're looking for JSON dictionaries, check out the github releases.
10
10
 
11
11
  ```html
12
12
  <head>
13
- <script src="https://cdn.jsdelivr.net/npm/taraskevizer@latest/dist/bundle.js"></script>
14
- <script>
15
- document.write(taraskevizer.pipelines.tarask('планета'));
16
- </script>
13
+ <script src="https://cdn.jsdelivr.net/npm/taraskevizer@latest/dist/bundle.js"></script>
14
+ <script>
15
+ document.write(taraskevizer.pipelines.tarask("планета"));
16
+ </script>
17
17
  </head>
18
18
  ```
19
19
 
@@ -41,50 +41,50 @@ bun add taraskevizer
41
41
 
42
42
  ```js
43
43
  import {
44
- pipelines,
45
- TaraskConfig,
46
- htmlConfigOptions,
47
- wrappers,
48
- alphabets,
49
- REPLACE_J,
50
- VARIATION,
51
- } from 'taraskevizer';
52
-
53
- pipelines.tarask('планета');
44
+ pipelines,
45
+ TaraskConfig,
46
+ htmlConfigOptions,
47
+ wrappers,
48
+ alphabets,
49
+ REPLACE_J,
50
+ VARIATION,
51
+ } from "taraskevizer";
52
+
53
+ pipelines.tarask("планета");
54
54
  // "плянэта"
55
55
 
56
56
  const cfg = new TaraskConfig({
57
- abc: alphabets.cyrillic,
58
- j: 'always',
59
- variations: 'first',
60
- wrappers: wrappers.ansiColor,
61
- g: true,
57
+ abc: alphabets.cyrillic,
58
+ j: "always",
59
+ variations: "first",
60
+ wrappers: wrappers.ansiColor,
61
+ g: true,
62
62
  });
63
- pipelines.tarask('планета і Гродна', cfg);
63
+ pipelines.tarask("планета і Гродна", cfg);
64
64
  // "пл\x1b[32mя\x1b[0mн\x1b[32mэ\x1b[0mта \x1b[32mй\x1b[0m \x1b[35mГорадня\x1b[0m"
65
65
 
66
- pipelines.tarask('энергія планеты', {
67
- ...htmlConfigOptions,
68
- abc: alphabets.latin,
69
- g: false, // ignored, g matters for cyrillic alphabet only
66
+ pipelines.tarask("энергія планеты", {
67
+ ...htmlConfigOptions,
68
+ abc: alphabets.latin,
69
+ g: false, // ignored, g matters for cyrillic alphabet only
70
70
  });
71
71
  // "en<tarF>erg</tarF>ija p<tarF>lan</tarF>ety"
72
72
 
73
73
  const latinWithJiCfg = new TaraskConfig({
74
- abc: alphabets.latinJi,
74
+ abc: alphabets.latinJi,
75
75
  });
76
76
 
77
- pipelines.alphabetic('яна і іншыя', latinWithJiCfg);
77
+ pipelines.alphabetic("яна і іншыя", latinWithJiCfg);
78
78
  // "jana j jinšyja"
79
79
  ```
80
80
 
81
81
  # Builtin Pipelines
82
82
 
83
- | Pipeline | Taraskevization | Phonetization | Alphabet | Special syntax |
84
- | ---------- | --------------- | ------------- | -------- | -------------- |
85
- | tarask | ✅ | ❌ | ✅ | ✅ |
86
- | alphabetic | ❌ | ❌ | ✅ | ✅ |
87
- | phonetic | ❌ | ✅ (alpha) | ✅ | ✅ |
83
+ | Pipeline | Taraskevization | Phonetization | Alphabet | Special syntax |
84
+ | ---------- | --------------- | ----------------- | -------- | -------------- |
85
+ | tarask | ✅ | ❌ | ✅ | ✅ |
86
+ | alphabetic | ❌ | ❌ | ✅ | ✅ |
87
+ | phonetic | ❌ | ✅ (experimental) | ✅ | ✅ |
88
88
 
89
89
  # HTML tags
90
90
 
package/dist/bin.js CHANGED
@@ -7,7 +7,7 @@ process.argv.splice(0, 2);
7
7
  const firstArg = process.argv[0];
8
8
  if (firstArg) {
9
9
  if (firstArg === '-v' || firstArg === '--version') {
10
- printWithPrefix("10.4.2");
10
+ printWithPrefix("10.4.3");
11
11
  process.exit(0);
12
12
  }
13
13
  if (firstArg === '-h' || firstArg === '--help') {
@@ -1,3 +1,3 @@
1
1
  import type { CallableDict } from '../dict/types';
2
2
  export declare const dict: (dict: CallableDict, regex: RegExp) => CallableDict;
3
- export declare const trace: <T>(msgs_0: T, ...msgs: unknown[]) => T;
3
+ export declare const trace: <T>(...msgs: [T, ...unknown[]]) => T;
@@ -39,6 +39,6 @@ export declare const _pipe: (subPipeline: TaraskStep<any>[]) => import("./lib").
39
39
  export declare const tarask: import("./lib").Pipeline;
40
40
  /**
41
41
  * Pipeline for phonetizing.
42
- * @alpha
42
+ * @experimental
43
43
  */
44
44
  export declare const phonetic: import("./lib").Pipeline;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taraskevizer",
3
- "version": "10.4.2",
3
+ "version": "10.4.3",
4
4
  "author": "GooseOb",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,26 +9,23 @@
9
9
  "main": "dist/index.js",
10
10
  "module": "dist/index.js",
11
11
  "devDependencies": {
12
+ "@biomejs/biome": "^1.9.4",
12
13
  "@digitak/esrun": "^3.2.26",
13
- "@eslint/js": "^9.19.0",
14
- "@types/node": "^20.17.17",
15
- "bun-types": "^1.2.2",
16
- "esbuild": "^0.25.0",
17
- "eslint": "^9.19.0",
14
+ "@eslint/js": "^9.24.0",
15
+ "@types/node": "^20.17.30",
16
+ "bun-types": "^1.2.9",
17
+ "esbuild": "^0.25.2",
18
+ "eslint": "^9.24.0",
18
19
  "husky": "^9.1.7",
19
- "prettier": "^3.4.2",
20
20
  "typedoc": "^0.26.11",
21
- "typescript": "^5.7.3",
22
- "typescript-eslint": "^8.23.0"
21
+ "typescript": "^5.8.3",
22
+ "typescript-eslint": "^8.30.1"
23
23
  },
24
24
  "bin": {
25
25
  "tarask": "dist/bin.js"
26
26
  },
27
27
  "description": "Канвэртацыя акадэмічнага правапісу ў клясычны",
28
- "files": [
29
- "dist",
30
- "README.md"
31
- ],
28
+ "files": ["dist", "README.md"],
32
29
  "homepage": "https://gooseob.github.io/taraskevizatar/",
33
30
  "keywords": [
34
31
  "taraskevizatar",
@@ -41,7 +38,7 @@
41
38
  "private": false,
42
39
  "scripts": {
43
40
  "build": "bun ./build.ts",
44
- "prettier": "prettier --write .",
41
+ "format": "biome format --write",
45
42
  "lint": "eslint .",
46
43
  "dev": "esrun --watch=src/*,test/* --send-code-mode=temporaryFile test",
47
44
  "dev:bun": "bun test --watch",