@ai-sdk/provider-utils
Advanced tools
Comparing version 2.0.0-canary.2 to 2.0.0-canary.3
@@ -119,3 +119,3 @@ "use strict"; | ||
prefix, | ||
size: defaultSize = 7, | ||
size: defaultSize = 16, | ||
alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", | ||
@@ -122,0 +122,0 @@ separator = "-" |
# @ai-sdk/provider-utils | ||
## 2.0.0-canary.3 | ||
### Major Changes | ||
- 8426f55: chore (ai):increase id generator default size from 7 to 16. | ||
## 2.0.0-canary.2 | ||
@@ -4,0 +10,0 @@ |
@@ -34,3 +34,3 @@ import { JSONValue, JSONParseError, TypeValidationError, APICallError } from '@ai-sdk/provider'; | ||
* @param separator - The separator between the prefix and the random part of the ID. Default: '-'. | ||
* @param size - The size of the random part of the ID to generate. Default: 7. | ||
* @param size - The size of the random part of the ID to generate. Default: 16. | ||
*/ | ||
@@ -44,5 +44,5 @@ declare const createIdGenerator: ({ prefix, size: defaultSize, alphabet, separator, }?: { | ||
/** | ||
* Generates a 7-character random string to use for IDs. Not secure. | ||
* Generates a 16-character random string to use for IDs. Not secure. | ||
* | ||
* @param size - The size of the ID to generate. Default: 7. | ||
* @param size - The size of the ID to generate. Default: 16. | ||
*/ | ||
@@ -49,0 +49,0 @@ declare const generateId: (size?: number) => string; |
@@ -119,3 +119,3 @@ "use strict"; | ||
prefix, | ||
size: defaultSize = 7, | ||
size: defaultSize = 16, | ||
alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", | ||
@@ -122,0 +122,0 @@ separator = "-" |
{ | ||
"name": "@ai-sdk/provider-utils", | ||
"version": "2.0.0-canary.2", | ||
"version": "2.0.0-canary.3", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1311134