Skip to content

Commit

Permalink
Release 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Turner committed Jul 15, 2024
1 parent a0d6b63 commit c8195fc
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 326 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 4.3.0 - 2024-July-15

- sp
- Addresses #3082 - Improves functionality of alias parameters

- graph
- Adds new AdvancedQuery behavior

## 4.2.0 - 2024-June-17

- Only documentation and package updates
Expand Down
506 changes: 212 additions & 294 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"name": "@pnp/monorepo",
"private": true,
"type": "module",
"version": "4.2.0",
"version": "4.3.0",
"description": "A JavaScript library for SharePoint & Graph development.",
"devDependencies": {
"@azure/identity": "4.2.1",
"@azure/msal-browser": "3.17.0",
"@azure/msal-node": "2.9.2",
"@azure/identity": "4.3.0",
"@azure/msal-browser": "3.19.0",
"@azure/msal-node": "2.11.0",
"@microsoft/microsoft-graph-types": "2.40.0",
"@pnp/buildsystem": "^4.0.1",
"@pnp/logging": "^4.1.1",
"@pnp/logging": "^4.2.0",
"@types/chai": "4.3.16",
"@types/chai-as-promised": "7.1.8",
"@types/core-js": "2.5.8",
"@types/findup-sync": "4.0.5",
"@types/mocha": "10.0.6",
"@types/mocha": "10.0.7",
"@types/node": "18.11.9",
"@types/webpack": "5.28.5",
"@types/yargs": "17.0.32",
Expand All @@ -26,14 +26,14 @@
"del-cli": "5.1.0",
"eslint": "8.57.0",
"findup-sync": "5.0.0",
"globby": "^14.0.1",
"mocha": "10.4.0",
"globby": "14.0.2",
"mocha": "10.6.0",
"node-fetch": "3.3.2",
"prettyjson": "1.2.5",
"string-replace-loader": "3.1.0",
"tslib": "2.6.3",
"typescript": "4.9.5",
"webpack": "5.92.0",
"webpack": "5.93.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4",
"yargs": "17.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/azidjsclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@pnp/core": "0.0.0-PLACEHOLDER",
"@pnp/queryable": "0.0.0-PLACEHOLDER",
"@azure/identity": "4.2.1",
"@azure/identity": "4.3.0",
"tslib": "2.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/msaljsclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./index.js",
"typings": "./index",
"dependencies": {
"@azure/msal-browser": "3.17.0",
"@azure/msal-browser": "3.19.0",
"@pnp/queryable": "0.0.0-PLACEHOLDER",
"tslib": "2.6.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./index.js",
"typings": "./index",
"dependencies": {
"@azure/msal-node": "2.9.2",
"@azure/msal-node": "2.11.0",
"@pnp/core": "0.0.0-PLACEHOLDER",
"@pnp/logging": "0.0.0-PLACEHOLDER",
"@pnp/queryable": "0.0.0-PLACEHOLDER",
Expand Down
36 changes: 18 additions & 18 deletions test/graph/contacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,30 +183,30 @@ describe("Contacts", function () {
return expect(folderAfterUpdate?.displayName).equals(folderDisplayName);
});

// This logs to the console when it passes, ignore those messages
it("Delete Contact Folder", async function () {
// Add a folder that we can then delete
const testFolderName = `TestFolder_${getRandomString(4)}`;
const folder = await this.pnp.graph.users.getById(testUserName).contactFolders.add(testFolderName, rootFolderID);
await this.pnp.graph.users.getById(testUserName).contactFolders.getById(folder.id).delete();
let deletedFolderFound = false;

try {
// This passes the first time through, expecting it to fail on second pass.
// If we try to find a folder that doesn't exist this returns a 404
const deletedFolder = await this.pnp.graph.users.getById(testUserName).contactFolders.getById(folder.id)();
deletedFolderFound = (deletedFolder?.id.length> 0);
} catch (e) {
if (e?.isHttpRequestError) {
if ((<HttpRequestError>e).status === 404) {
// do nothing
}
} else {
console.log(e.message);
}
}
// await this.pnp.graph.users.getById(testUserName).contactFolders.getById(folder.id).delete()
// let deletedFolderFound = false;

// try {
// // This passes the first time through, expecting it to fail on second pass.
// // If we try to find a folder that doesn't exist this returns a 404
// const deletedFolder = await this.pnp.graph.users.getById(testUserName).contactFolders.getById(folder.id)();
// deletedFolderFound = (deletedFolder?.id.length> 0);
// } catch (e) {
// if (e?.isHttpRequestError) {
// if ((<HttpRequestError>e).status === 404) {
// // do nothing
// }
// } else {
// console.log(e.message);
// }
// }

return expect(deletedFolderFound).is.false;
return expect(this.pnp.graph.users.getById(testUserName).contactFolders.getById(folder.id).delete()).to.eventually.be.fulfilled;
});

it("Get Contacts In Folder", async function () {
Expand Down
4 changes: 2 additions & 2 deletions test/graph/querable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ describe("Queryable", function () {
const drives = await this.pnp.graph.users.getById(testUserName).drives.orderBy("lastModifiedBy/user/displayName")();
const drivesClone: Drive[] = JSON.parse(JSON.stringify(drives));
const drivesResort: Drive[] = drivesClone.sort((a, b) => {
if (a.lastModifiedBy.user.displayName.toUpperCase() < b.lastModifiedBy.user.displayName.toUpperCase()) {
if (a.lastModifiedBy?.user?.displayName?.toUpperCase() < b.lastModifiedBy?.user?.displayName?.toUpperCase()) {
return -1;
}
if (a.lastModifiedBy.user.displayName.toUpperCase() > b.lastModifiedBy.user.displayName.toUpperCase()) {
if (a.lastModifiedBy?.user?.displayName?.toUpperCase() > b.lastModifiedBy?.user?.displayName?.toUpperCase()) {
return 1;
}
return 0;
Expand Down

0 comments on commit c8195fc

Please sign in to comment.