@microsoft/kiota-bundle
Advanced tools
+20
-0
| # Changelog | ||
| ## [1.0.0-preview.94](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-bundle@1.0.0-preview.93...@microsoft/kiota-bundle@1.0.0-preview.94) (2025-06-02) | ||
| ### Bug Fixes | ||
| * client creation fails because of instanceof use ([3a039c1](https://github.com/microsoft/kiota-typescript/commit/3a039c1d36f341ddb8d7043c5a0dee37429c63e1)) | ||
| * client creation fails because of instanceof use ([88c0604](https://github.com/microsoft/kiota-typescript/commit/88c0604eb9286b8a5c9014388e5a5213f78f99dc)) | ||
| ### Dependencies | ||
| * The following workspace dependencies were updated | ||
| * dependencies | ||
| * @microsoft/kiota-abstractions bumped from ^1.0.0-preview.93 to ^1.0.0-preview.94 | ||
| * @microsoft/kiota-http-fetchlibrary bumped from ^1.0.0-preview.93 to ^1.0.0-preview.94 | ||
| * @microsoft/kiota-serialization-form bumped from ^1.0.0-preview.93 to ^1.0.0-preview.94 | ||
| * @microsoft/kiota-serialization-json bumped from ^1.0.0-preview.93 to ^1.0.0-preview.94 | ||
| * @microsoft/kiota-serialization-multipart bumped from ^1.0.0-preview.93 to ^1.0.0-preview.94 | ||
| * @microsoft/kiota-serialization-text bumped from ^1.0.0-preview.93 to ^1.0.0-preview.94 | ||
| ## [1.0.0-preview.93](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-bundle@1.0.0-preview.92...@microsoft/kiota-bundle@1.0.0-preview.93) (2025-04-14) | ||
@@ -4,0 +24,0 @@ |
@@ -30,26 +30,18 @@ /** | ||
| setupDefaults() { | ||
| let parseNodeFactoryRegistry; | ||
| if (super.getParseNodeFactory() instanceof ParseNodeFactoryRegistry) { | ||
| parseNodeFactoryRegistry = super.getParseNodeFactory(); | ||
| const parseNodeFactoryRegistry = super.getParseNodeFactory(); | ||
| const serializationWriterFactoryRegistry = super.getSerializationWriterFactory(); | ||
| const backingStoreFactory = super.getBackingStoreFactory(); | ||
| if (parseNodeFactoryRegistry.registerDefaultDeserializer) { | ||
| parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory); | ||
| parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory); | ||
| parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory); | ||
| } | ||
| else { | ||
| throw new Error("ParseNodeFactory must be a ParseNodeFactoryRegistry"); | ||
| if (serializationWriterFactoryRegistry.registerDefaultSerializer) { | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(JsonSerializationWriterFactory); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(TextSerializationWriterFactory); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(FormSerializationWriterFactory); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(MultipartSerializationWriterFactory); | ||
| } | ||
| let serializationWriterFactoryRegistry; | ||
| if (super.getSerializationWriterFactory() instanceof SerializationWriterFactoryRegistry) { | ||
| serializationWriterFactoryRegistry = super.getSerializationWriterFactory(); | ||
| } | ||
| else { | ||
| throw new Error("SerializationWriterFactory must be a SerializationWriterFactoryRegistry"); | ||
| } | ||
| const backingStoreFactory = super.getBackingStoreFactory(); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(JsonSerializationWriterFactory); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(TextSerializationWriterFactory); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(FormSerializationWriterFactory); | ||
| serializationWriterFactoryRegistry.registerDefaultSerializer(MultipartSerializationWriterFactory); | ||
| parseNodeFactoryRegistry.registerDefaultDeserializer(TextParseNodeFactory, backingStoreFactory); | ||
| parseNodeFactoryRegistry.registerDefaultDeserializer(JsonParseNodeFactory, backingStoreFactory); | ||
| parseNodeFactoryRegistry.registerDefaultDeserializer(FormParseNodeFactory, backingStoreFactory); | ||
| } | ||
| } | ||
| //# sourceMappingURL=defaultRequestAdapter.js.map |
+8
-8
| { | ||
| "name": "@microsoft/kiota-bundle", | ||
| "version": "1.0.0-preview.93", | ||
| "version": "1.0.0-preview.94", | ||
| "description": "Kiota Bundle package providing default implementations for client setup for kiota generated libraries in TypeScript and JavaScript", | ||
@@ -34,8 +34,8 @@ "main": "dist/es/src/index.js", | ||
| "dependencies": { | ||
| "@microsoft/kiota-abstractions": "^1.0.0-preview.93", | ||
| "@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.93", | ||
| "@microsoft/kiota-serialization-form": "^1.0.0-preview.93", | ||
| "@microsoft/kiota-serialization-json": "^1.0.0-preview.93", | ||
| "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.93", | ||
| "@microsoft/kiota-serialization-text": "^1.0.0-preview.93" | ||
| "@microsoft/kiota-abstractions": "^1.0.0-preview.94", | ||
| "@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.94", | ||
| "@microsoft/kiota-serialization-form": "^1.0.0-preview.94", | ||
| "@microsoft/kiota-serialization-json": "^1.0.0-preview.94", | ||
| "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.94", | ||
| "@microsoft/kiota-serialization-text": "^1.0.0-preview.94" | ||
| }, | ||
@@ -48,3 +48,3 @@ "publishConfig": { | ||
| ], | ||
| "gitHead": "23e92334e2c0bd3fb1db16044207b1b825f1a86a" | ||
| "gitHead": "6dfdd0d5ca5a7d61f5e4a5db81c17e6b8784a28c" | ||
| } |
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
93349
1.47%92
-8%