@microsoft/kiota-bundle
Advanced tools
+19
-0
| # Changelog | ||
| ## [1.0.0-preview.92](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-bundle@1.0.0-preview.91...@microsoft/kiota-bundle@1.0.0-preview.92) (2025-03-24) | ||
| ### Bug Fixes | ||
| * Removes singleton registries ([#1634](https://github.com/microsoft/kiota-typescript/issues/1634)) ([8baf6e3](https://github.com/microsoft/kiota-typescript/commit/8baf6e3ae7f479f3745c502c93513678eb9f05c6)) | ||
| ### Dependencies | ||
| * The following workspace dependencies were updated | ||
| * dependencies | ||
| * @microsoft/kiota-abstractions bumped from ^1.0.0-preview.91 to ^1.0.0-preview.92 | ||
| * @microsoft/kiota-http-fetchlibrary bumped from ^1.0.0-preview.91 to ^1.0.0-preview.92 | ||
| * @microsoft/kiota-serialization-form bumped from ^1.0.0-preview.91 to ^1.0.0-preview.92 | ||
| * @microsoft/kiota-serialization-json bumped from ^1.0.0-preview.91 to ^1.0.0-preview.92 | ||
| * @microsoft/kiota-serialization-multipart bumped from ^1.0.0-preview.91 to ^1.0.0-preview.92 | ||
| * @microsoft/kiota-serialization-text bumped from ^1.0.0-preview.91 to ^1.0.0-preview.92 | ||
| ## [1.0.0-preview.91](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-bundle@1.0.0-preview.90...@microsoft/kiota-bundle@1.0.0-preview.91) (2025-03-21) | ||
@@ -4,0 +23,0 @@ |
@@ -22,4 +22,4 @@ /** | ||
| constructor(authenticationProvider: AuthenticationProvider, parseNodeFactory?: ParseNodeFactory, serializationWriterFactory?: SerializationWriterFactory, httpClient?: HttpClient, observabilityOptions?: ObservabilityOptions); | ||
| private static setupDefaults; | ||
| private setupDefaults; | ||
| } | ||
| //# sourceMappingURL=defaultRequestAdapter.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"defaultRequestAdapter.d.ts","sourceRoot":"","sources":["../../../src/defaultRequestAdapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAoF,0BAA0B,EAAsC,MAAM,+BAA+B,CAAC;AAK3O,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,KAAK,oBAAoB,EAA4B,MAAM,oCAAoC,CAAC;AAE1I;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC7D;;;;;;;OAOG;gBACgB,sBAAsB,EAAE,sBAAsB,EAAE,gBAAgB,GAAE,gBAA2D,EAAE,0BAA0B,GAAE,0BAA+E,EAAE,UAAU,GAAE,UAA6B,EAAE,oBAAoB,GAAE,oBAAqD;IAKrX,OAAO,CAAC,MAAM,CAAC,aAAa;CAS5B"} | ||
| {"version":3,"file":"defaultRequestAdapter.d.ts","sourceRoot":"","sources":["../../../src/defaultRequestAdapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAA4B,0BAA0B,EAAsC,MAAM,+BAA+B,CAAC;AAKnL,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,KAAK,oBAAoB,EAA4B,MAAM,oCAAoC,CAAC;AAE1I;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,mBAAmB;IAC7D;;;;;;;OAOG;gBACgB,sBAAsB,EAAE,sBAAsB,EAAE,gBAAgB,GAAE,gBAAiD,EAAE,0BAA0B,GAAE,0BAAqE,EAAE,UAAU,GAAE,UAA6B,EAAE,oBAAoB,GAAE,oBAAqD;IAKjW,OAAO,CAAC,aAAa;CAwBrB"} |
@@ -7,3 +7,3 @@ /** | ||
| */ | ||
| import { ParseNodeFactoryRegistry, registerDefaultDeserializer, registerDefaultSerializer, SerializationWriterFactoryRegistry } from "@microsoft/kiota-abstractions"; | ||
| import { ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry } from "@microsoft/kiota-abstractions"; | ||
| import { FormParseNodeFactory, FormSerializationWriterFactory } from "@microsoft/kiota-serialization-form"; | ||
@@ -26,16 +26,31 @@ import { JsonParseNodeFactory, JsonSerializationWriterFactory } from "@microsoft/kiota-serialization-json"; | ||
| */ | ||
| constructor(authenticationProvider, parseNodeFactory = ParseNodeFactoryRegistry.defaultInstance, serializationWriterFactory = SerializationWriterFactoryRegistry.defaultInstance, httpClient = new HttpClient(), observabilityOptions = new ObservabilityOptionsImpl()) { | ||
| constructor(authenticationProvider, parseNodeFactory = new ParseNodeFactoryRegistry(), serializationWriterFactory = new SerializationWriterFactoryRegistry(), httpClient = new HttpClient(), observabilityOptions = new ObservabilityOptionsImpl()) { | ||
| super(authenticationProvider, parseNodeFactory, serializationWriterFactory, httpClient, observabilityOptions); | ||
| DefaultRequestAdapter.setupDefaults(); | ||
| this.setupDefaults(); | ||
| } | ||
| static setupDefaults() { | ||
| registerDefaultSerializer(JsonSerializationWriterFactory); | ||
| registerDefaultSerializer(TextSerializationWriterFactory); | ||
| registerDefaultSerializer(FormSerializationWriterFactory); | ||
| registerDefaultSerializer(MultipartSerializationWriterFactory); | ||
| registerDefaultDeserializer(JsonParseNodeFactory); | ||
| registerDefaultDeserializer(TextParseNodeFactory); | ||
| registerDefaultDeserializer(FormParseNodeFactory); | ||
| setupDefaults() { | ||
| let parseNodeFactoryRegistry; | ||
| if (super.getParseNodeFactory() instanceof ParseNodeFactoryRegistry) { | ||
| parseNodeFactoryRegistry = super.getParseNodeFactory(); | ||
| } | ||
| else { | ||
| throw new Error("ParseNodeFactory must be a ParseNodeFactoryRegistry"); | ||
| } | ||
| 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 |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"defaultRequestAdapter.js","sourceRoot":"","sources":["../../../src/defaultRequestAdapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAA4C,wBAAwB,EAAE,2BAA2B,EAAE,yBAAyB,EAA8B,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AAC3O,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,EAAE,mCAAmC,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAA6B,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE1I;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,mBAAmB;IAC7D;;;;;;;OAOG;IACH,YAAmB,sBAA8C,EAAE,mBAAqC,wBAAwB,CAAC,eAAe,EAAE,6BAAyD,kCAAkC,CAAC,eAAe,EAAE,aAAyB,IAAI,UAAU,EAAE,EAAE,uBAA6C,IAAI,wBAAwB,EAAE;QACpX,KAAK,CAAC,sBAAsB,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,UAAU,EAAE,oBAAoB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,CAAC;QAC9G,IAAI,CAAC,aAAa,EAAE,CAAC;IACtB,CAAC;IAEO,aAAa;QACpB,IAAI,wBAAkD,CAAC;QACvD,IAAI,KAAK,CAAC,mBAAmB,EAAE,YAAY,wBAAwB,EAAE,CAAC;YACrE,wBAAwB,GAAG,KAAK,CAAC,mBAAmB,EAA8B,CAAC;QACpF,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,kCAAsE,CAAC;QAC3E,IAAI,KAAK,CAAC,6BAA6B,EAAE,YAAY,kCAAkC,EAAE,CAAC;YACzF,kCAAkC,GAAG,KAAK,CAAC,6BAA6B,EAAwC,CAAC;QAClH,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;QAC5F,CAAC;QAED,MAAM,mBAAmB,GAAG,KAAK,CAAC,sBAAsB,EAAE,CAAC;QAC3D,kCAAkC,CAAC,yBAAyB,CAAC,8BAA8B,CAAC,CAAC;QAC7F,kCAAkC,CAAC,yBAAyB,CAAC,8BAA8B,CAAC,CAAC;QAC7F,kCAAkC,CAAC,yBAAyB,CAAC,8BAA8B,CAAC,CAAC;QAC7F,kCAAkC,CAAC,yBAAyB,CAAC,mCAAmC,CAAC,CAAC;QAClG,wBAAwB,CAAC,2BAA2B,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,CAAC;QAChG,wBAAwB,CAAC,2BAA2B,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,CAAC;QAChG,wBAAwB,CAAC,2BAA2B,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,CAAC;IACjG,CAAC;CACD"} |
+8
-8
| { | ||
| "name": "@microsoft/kiota-bundle", | ||
| "version": "1.0.0-preview.91", | ||
| "version": "1.0.0-preview.92", | ||
| "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.91", | ||
| "@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.91", | ||
| "@microsoft/kiota-serialization-form": "^1.0.0-preview.91", | ||
| "@microsoft/kiota-serialization-json": "^1.0.0-preview.91", | ||
| "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.91", | ||
| "@microsoft/kiota-serialization-text": "^1.0.0-preview.91" | ||
| "@microsoft/kiota-abstractions": "^1.0.0-preview.92", | ||
| "@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.92", | ||
| "@microsoft/kiota-serialization-form": "^1.0.0-preview.92", | ||
| "@microsoft/kiota-serialization-json": "^1.0.0-preview.92", | ||
| "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.92", | ||
| "@microsoft/kiota-serialization-text": "^1.0.0-preview.92" | ||
| }, | ||
@@ -48,3 +48,3 @@ "publishConfig": { | ||
| ], | ||
| "gitHead": "62046c38ea28a59a2351a114ffce53cbea527d37" | ||
| "gitHead": "ada6bc909c0df125fda0e9287072035e0807bbf0" | ||
| } |
Sorry, the diff of this file is not supported yet
91557
2.24%100
17.65%