Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 4.4.0 #3110

Merged
merged 3 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ 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.4.0 - 2024-Aug-12

- sp
- Addresses #3091 - Update return types from Shares
- Addresses #3104 - Replaces an in-function await to just return the promise.

- graph
- Addresses #3083 - Adds the ability to pass in retrieveProperties to getAllChildrenAsTree. V2 and V3 had this functionality. Only supports Shared Custom Properties, not Local Custom Properties.


## 4.3.0 - 2024-July-15

- sp
Expand Down
13 changes: 7 additions & 6 deletions docs/sp/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ if (file.size <= 10485760) {
result = await sp.web.getFolderByServerRelativePath("Shared Documents").files.addUsingPath(fileNamePath, file, { Overwrite: true });
} else {
// large upload
result = await sp.web.getFolderByServerRelativePath("Shared Documents").files.addChunked(fileNamePath, file, data => {
console.log(`progress`);
}, true);
result = await sp.web.getFolderByServerRelativePath("Shared Documents").files.addChunked(fileNamePath, file,
{ progress: data => { console.log(`progress`); },
Overwrite: true
}
);
}

console.log(`Result of file upload: ${JSON.stringify(result)}`);
Expand Down Expand Up @@ -186,7 +188,7 @@ const stream = createReadStream("c:/temp/file.txt");
// now add the stream as a new file
const sp = spfi(...);

const fr = await sp.web.lists.getByTitle("Documents").rootFolder.files.addChunked( "new.txt", stream, undefined, true );
const fileInfo = await sp.web.lists.getByTitle("Documents").rootFolder.files.addChunked("new.txt", stream, { progress: data => { console.log(`progress`); }, Overwrite: true });
```

### Setting Associated Item Values
Expand All @@ -200,7 +202,7 @@ import "@pnp/sp/files";
import "@pnp/sp/folders";

const sp = spfi(...);
const file = await sp.web.getFolderByServerRelativePath("/sites/dev/Shared%20Documents/test/").files.addUsingPath("file.name", "content", {Overwrite: true});
const fileInfo = await sp.web.getFolderByServerRelativePath("/sites/dev/Shared%20Documents/test/").files.addUsingPath("file.name", "content", {Overwrite: true});
const item = await file.file.getItem();
await item.update({
Title: "A Title",
Expand Down Expand Up @@ -560,4 +562,3 @@ import "@pnp/sp/files";
const sp = spfi(...);
const user = await sp.web.getFolderByServerRelativePath("{folder relative path}").files.getByUrl("name.txt").getLockedByUser();
```

239 changes: 118 additions & 121 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
"name": "@pnp/monorepo",
"private": true,
"type": "module",
"version": "4.3.0",
"version": "4.4.0",
"description": "A JavaScript library for SharePoint & Graph development.",
"devDependencies": {
"@azure/identity": "4.3.0",
"@azure/msal-browser": "3.19.0",
"@azure/msal-node": "2.11.0",
"@azure/identity": "4.4.1",
"@azure/msal-browser": "3.20.0",
"@azure/msal-node": "2.12.0",
"@microsoft/microsoft-graph-types": "2.40.0",
"@pnp/buildsystem": "^4.0.1",
"@pnp/logging": "^4.2.0",
"@types/chai": "4.3.16",
"@pnp/logging": "^4.3.0",
"@types/chai": "4.3.17",
"@types/chai-as-promised": "7.1.8",
"@types/core-js": "2.5.8",
"@types/findup-sync": "4.0.5",
"@types/mocha": "10.0.7",
"@types/node": "18.11.9",
"@types/webpack": "5.28.5",
"@types/yargs": "17.0.32",
"@types/yargs": "17.0.33",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"chai": "4.3.10",
Expand All @@ -27,7 +27,7 @@
"eslint": "8.57.0",
"findup-sync": "5.0.0",
"globby": "14.0.2",
"mocha": "10.6.0",
"mocha": "10.7.3",
"node-fetch": "3.3.2",
"prettyjson": "1.2.5",
"string-replace-loader": "3.1.0",
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.3.0",
"@azure/identity": "4.4.1",
"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.19.0",
"@azure/msal-browser": "3.20.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.11.0",
"@azure/msal-node": "2.12.0",
"@pnp/core": "0.0.0-PLACEHOLDER",
"@pnp/logging": "0.0.0-PLACEHOLDER",
"@pnp/queryable": "0.0.0-PLACEHOLDER",
Expand Down