@goliapkg/tiktoken-wasm 3.4.0 → 3.5.1

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
@@ -1,7 +1,7 @@
1
1
  # @goliapkg/tiktoken-wasm
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@goliapkg/tiktoken-wasm?style=flat-square&logo=npm)](https://www.npmjs.com/package/@goliapkg/tiktoken-wasm)
4
- [![License](https://img.shields.io/npm/l/@goliapkg/tiktoken-wasm?style=flat-square)](LICENSE)
4
+ [![License](https://img.shields.io/npm/l/@goliapkg/tiktoken-wasm?style=flat-square)](#license)
5
5
 
6
6
  **English** | [简体中文](README.zh-CN.md) | [日本語](README.ja.md)
7
7
 
@@ -161,7 +161,7 @@ Map a model name to its encoding name without loading the encoding.
161
161
 
162
162
  ### `estimateCost(modelId, inputTokens, outputTokens): number`
163
163
 
164
- Estimate API cost in USD. Supports 63 models across 7 providers.
164
+ Estimate API cost in USD. Supports 68 models across 7 providers.
165
165
 
166
166
  ### `getModelInfo(modelId): ModelInfo`
167
167
 
@@ -169,7 +169,7 @@ Get model metadata with full TypeScript typing.
169
169
 
170
170
  ### `allModels(): ModelInfo[]`
171
171
 
172
- List all 57 supported models with pricing info.
172
+ List all 68 supported models with pricing info.
173
173
 
174
174
  ### `modelsByProvider(provider): ModelInfo[]`
175
175
 
@@ -223,4 +223,4 @@ See [`examples/react-app`](../tiktoken/examples/react-app/) for a complete Vite
223
223
 
224
224
  ## License
225
225
 
226
- [MIT](LICENSE)
226
+ Licensed under either of [MIT](LICENSE-MIT) or [Apache-2.0](LICENSE-APACHE), at your option.
package/package.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "name": "@goliapkg/tiktoken-wasm",
3
3
  "type": "module",
4
4
  "description": "WASM bindings for the tiktoken BPE tokenizer",
5
- "version": "3.4.0",
6
- "license": "MIT",
5
+ "version": "3.5.1",
6
+ "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/goliajp/rust-tiktoken"
Binary file
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 GOLIA株式会社
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.