Skip to content

Commit

Permalink
fix: UUID 'Namespace' can't be assigned to the parameter type 'String…
Browse files Browse the repository at this point in the history
…?' (#566)
  • Loading branch information
davidmigloz authored Oct 9, 2024
1 parent 63f7092 commit 1e93a59
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions examples/browser_summarizer/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions examples/docs_examples/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions examples/hello_world_backend/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
web:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions examples/hello_world_cli/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
web:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions examples/hello_world_flutter/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions examples/wikivoyage_eu/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ command:
shelf: ^1.4.2
shelf_router: ^1.1.4
supabase: ^2.2.7
uuid: ^4.4.2
uuid: ^4.5.1
web_socket_channel: ^3.0.1
dev_dependencies:
build_runner: ^2.4.11
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain/lib/src/embeddings/cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class EmbeddingsByteStoreEncoder
@override
String encodeKey(final String key) {
final keyHash = sha1.convert(utf8.encode(key)).toString();
return uuid.v5(Namespace.URL, keyHash);
return uuid.v5(Namespace.url.value, keyHash);
}
@override
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
crypto: ^3.0.3
langchain_core: 0.3.6
meta: ^1.11.0
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
test: ^1.25.8
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain/test/embeddings/cache.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void main() async {
const uuid = Uuid();
const key = 'key';
final keyHash = sha1.convert(utf8.encode(key)).toString();
final expectedEncodedKey = uuid.v5(Uuid.NAMESPACE_URL, keyHash);
final expectedEncodedKey = uuid.v5(Namespace.url.value, keyHash);
final value = [0.1, 0.2, 0.3];
final expectedEncodedValue =
Uint8List.fromList(utf8.encode(json.encode(value)));
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_chroma/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
http: ^1.2.2
langchain_core: 0.3.6
meta: ^1.11.0
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
test: ^1.25.8
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_community/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies:
meta: ^1.11.0
objectbox: ^4.0.1
tavily_dart: ^0.1.0
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
build_runner: ^2.4.11
Expand Down
4 changes: 2 additions & 2 deletions packages/langchain_firebase/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ packages:
dependency: transitive
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions packages/langchain_firebase/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ packages:
dependency: "direct main"
description:
name: uuid
sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
url: "https://pub.dev"
source: hosted
version: "4.4.2"
version: "4.5.1"
vector_math:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_firebase/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:
firebase_vertexai: ^0.2.2
langchain_core: 0.3.6
meta: ^1.11.0
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
flutter_test:
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_google/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
http: ^1.2.2
langchain_core: 0.3.6
meta: ^1.11.0
uuid: ^4.4.2
uuid: ^4.5.1
vertex_ai: ^0.1.0+2

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_ollama/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies:
langchain_tiktoken: ^1.0.1
meta: ^1.11.0
ollama_dart: ^0.2.2
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
test: ^1.25.8
2 changes: 1 addition & 1 deletion packages/langchain_openai/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies:
langchain_tiktoken: ^1.0.1
meta: ^1.11.0
openai_dart: ^0.4.2+1
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
langchain: ^0.7.7
Expand Down
2 changes: 1 addition & 1 deletion packages/langchain_pinecone/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
langchain_core: 0.3.6
meta: ^1.11.0
pinecone: ^0.7.2
uuid: ^4.4.2
uuid: ^4.5.1

dev_dependencies:
test: ^1.25.8
Expand Down

0 comments on commit 1e93a59

Please sign in to comment.