Skip to content

Commit

Permalink
Updates version and release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Omondi committed Mar 19, 2024
1 parent 6300255 commit b0ac754
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/abstractions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-abstractions",
"version": "1.0.0-preview.47",
"version": "1.0.0-preview.48",
"description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/abstractions/src/serialization/untypedBoolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export interface UntypedBoolean extends UntypedNode {
}

export function isUntypedBoolean(node: UntypedNode): node is UntypedBoolean {
return typeof (node as UntypedBoolean)?.value === "boolean";
const proposedNode = node as UntypedBoolean;
return proposedNode && typeof proposedNode.value === "boolean";
}

export function createUntypedBoolean(value: boolean): UntypedBoolean {
Expand Down
3 changes: 2 additions & 1 deletion packages/abstractions/src/serialization/untypedNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export interface UntypedNumber extends UntypedNode {
}

export function isUntypedNumber(node: UntypedNode): node is UntypedNumber {
return typeof (node as UntypedNumber)?.value === "number";
const proposedNode = node as UntypedNumber;
return proposedNode && typeof proposedNode.value === "number";
}

export function createUntypedNumber(value: number): UntypedNumber {
Expand Down
9 changes: 5 additions & 4 deletions packages/abstractions/src/serialization/untypedObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ export interface UntypedObject extends UntypedNode {
}

export function isUntypedObject(node: UntypedNode): node is UntypedObject {
const value = (node as UntypedObject)?.value;
const proposedNode = node as UntypedObject;
return (
value instanceof Object &&
value instanceof Array === false &&
Object.values(value).every((item) => isUntypedNode(item))
proposedNode &&
proposedNode.value instanceof Object &&
proposedNode.value instanceof Array === false &&
Object.values(proposedNode.value).every((item) => isUntypedNode(item))
);
}

Expand Down
3 changes: 2 additions & 1 deletion packages/abstractions/src/serialization/untypedString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export interface UntypedString extends UntypedNode {
}

export function isUntypedString(node: UntypedNode): node is UntypedString {
return typeof (node as UntypedString)?.value === "string";
const proposedNode = node as UntypedString;
return proposedNode && typeof proposedNode.value === "string";
}

export function createUntypedString(value: string): UntypedString {
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication/azure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-authentication-azure",
"version": "1.0.0-preview.42",
"version": "1.0.0-preview.43",
"description": "Authentication provider for Kiota using Azure Identity",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -30,7 +30,7 @@
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@azure/core-auth": "^1.5.0",
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/kiota-abstractions": "^1.0.0-preview.48",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication/spfx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-authentication-spfx",
"version": "1.0.0-preview.37",
"version": "1.0.0-preview.38",
"description": "Authentication provider for using Kiota in SPFx solutions",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/kiota-abstractions": "^1.0.0-preview.48",
"@microsoft/sp-http": "^1.15.2",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/http/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-http-fetchlibrary",
"version": "1.0.0-preview.46",
"version": "1.0.0-preview.47",
"description": "Kiota request adapter implementation with fetch",
"keywords": [
"Kiota",
Expand Down Expand Up @@ -38,7 +38,7 @@
"test:cjs": "mocha 'dist/cjs/test/common/**/*.js' && mocha 'dist/cjs/test/node/**/*.js'"
},
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/kiota-abstractions": "^1.0.0-preview.48",
"@opentelemetry/api": "^1.7.0",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-form",
"version": "1.0.0-preview.36",
"version": "1.0.0-preview.37",
"description": "Implementation of Kiota Serialization interfaces for URI from encoded",
"main": "dist/cjs/src/index.js",
"browser": {
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/kiota-abstractions": "^1.0.0-preview.48",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-json",
"version": "1.0.0-preview.47",
"version": "1.0.0-preview.48",
"description": "Implementation of Kiota Serialization interfaces for JSON",
"main": "dist/cjs/src/index.js",
"browser": {
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/kiota-abstractions": "^1.0.0-preview.48",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/multipart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-multipart",
"version": "1.0.0-preview.26",
"version": "1.0.0-preview.27",
"description": "Implementation of Kiota Serialization interfaces for multipart form data",
"main": "dist/cjs/src/index.js",
"module": "dist/es/src/index.js",
Expand Down Expand Up @@ -40,7 +40,7 @@
"tslib": "^2.6.2"
},
"devDependencies": {
"@microsoft/kiota-serialization-json": "^1.0.0-preview.47"
"@microsoft/kiota-serialization-json": "^1.0.0-preview.48"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/serialization/text/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-text",
"version": "1.0.0-preview.44",
"version": "1.0.0-preview.45",
"description": "Implementation of Kiota Serialization interfaces for text",
"main": "dist/cjs/src/index.js",
"browser": {
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.47",
"@microsoft/kiota-abstractions": "^1.0.0-preview.48",
"guid-typescript": "^1.0.9",
"tslib": "^2.6.2"
},
Expand Down

0 comments on commit b0ac754

Please sign in to comment.