diff --git a/docs/docs/about/release-notes.mdx b/docs/docs/about/release-notes.mdx index b092048f145..2556349ea83 100644 --- a/docs/docs/about/release-notes.mdx +++ b/docs/docs/about/release-notes.mdx @@ -8,6 +8,10 @@ sidebar_position: 4 ### New commands +**SharePoint:** + +- [spo listitem batch remove](../cmd/spo/listitem/listitem-batch-remove.mdx) - removes items from a list in batch [#5688](https://github.com/pnp/cli-microsoft365/issues/5688) + ### Changes - refactored spo util codebase to async/await [#5079](https://github.com/pnp/cli-microsoft365/issues/5079) @@ -20,6 +24,11 @@ sidebar_position: 4 - fixed [setup](../cmd/setup.mdx) command for setting wrong config key in interactive mode [#5951](https://github.com/pnp/cli-microsoft365/issues/5951) - enhanced [entra m365group add](../cmd/entra/m365group/m365group-add.mdx) command by making option 'description' optional [#5930](https://github.com/pnp/cli-microsoft365/issues/5930) - enhanced [outlook message list](../cmd/outlook/message/message-list.mdx) command extra options [#5872](https://github.com/pnp/cli-microsoft365/issues/5872) +- added more validation output with invalid arrays. [#5834](https://github.com/pnp/cli-microsoft365/issues/5834) +- modified help output in case of errors. [#5341](https://github.com/pnp/cli-microsoft365/issues/5341) +- added appName option to 'entra app permission add/list' commands. [#5786](https://github.com/pnp/cli-microsoft365/issues/5786) +- added interactivity for planner commands. [#5902](https://github.com/pnp/cli-microsoft365/issues/5902) +- removed trailing slashes from 'spo get' ## [v7.7.0](https://github.com/pnp/cli-microsoft365/releases/tag/v7.7.0) diff --git a/src/m365/spo/commands/spo-set.ts b/src/m365/spo/commands/spo-set.ts index 96d1f0ffa63..37d8e0120a0 100644 --- a/src/m365/spo/commands/spo-set.ts +++ b/src/m365/spo/commands/spo-set.ts @@ -1,6 +1,7 @@ import auth from '../../../Auth.js'; import { Logger } from '../../../cli/Logger.js'; import GlobalOptions from '../../../GlobalOptions.js'; +import { urlUtil } from '../../../utils/urlUtil.js'; import { validation } from '../../../utils/validation.js'; import SpoCommand from '../../base/SpoCommand.js'; import commands from '../commands.js'; @@ -49,7 +50,7 @@ class SpoSetCommand extends SpoCommand { } public async commandAction(logger: Logger, args: CommandArgs): Promise { - auth.connection.spoUrl = args.options.url.replace(/\/+$/, ''); + auth.connection.spoUrl = urlUtil.removeTrailingSlashes(args.options.url); try { await auth.storeConnectionInfo();