Skip to content

Commit

Permalink
chore(main): release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbarron committed Jan 30, 2024
1 parent 5e261c0 commit 9e9242e
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.1.3"
".": "4.0.0"
}
90 changes: 90 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,96 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [4.0.0](https://github.com/microsoftgraph/microsoft-graph-toolkit/compare/v3.1.3...v4.0.0) (2024-01-30)


### ⚠ BREAKING CHANGES

* mgt-loader.js is removed and there is no support for es5 only browsers direct from CDN. Developers loading mgt from a CDN must use module syntax and explicitly initialize their applications.
* mgt-spfx is deprecated, use disambiguation instead
* ViewType is now a string union type and not an enum
* UserType is now a string union type and not an enum
* PersonType is now a string union type and not an enum
* GroupType is now a string union type and not an enum
* groupType property on MgtPeoplePicker is now a GroupType[] not a GroupType that is a bitmask of the desired group types. Developers using the group-type attribute will find the behavior unchanged.
* the avatarType eunm has been renamed to AvatarType for consistency and converted to a string union type
* the ResponseType for mgt-get is now a string union type and not an enum
* PersonCardInteraction is now a string union type and not an enum
* convert attribute enums to string unions ([#2962](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2962))
* PersonViewType has been removed. 'avatar' is no longer a valid value for the 'view' attribute on the 'mgt-person' component
* **permissions:** applications using mgt-person with fetch-image and person-detal where the supplied value is a group will now need to consent to either Group.Read.All or Group.ReadWrite.All. This replaces the existing behavior where the group image would silently fail to load and show an http 403 error in the console.
* **permissions:** minimal permission for planner calls changed from Group.ReadWrite.All to Tasks.ReadWrite for write operation and from Group.Read.All to Tasks.Read for read operations.
* prepScopes now accepts an array of scopes, this is checked against the set of currently consented scopes for the user. If any of the supplied scopes are found, then no additional scopes are requested. If no match is found, then the user will be prompted to consent to the first scope in the supplied array of scopes
* mgt-tasks has been removed and replaced with mgt-planner. mgt-planner does not support data-source switching to fetch data from the outlook tasks apis any longer.
* Developers must explicitly call the register function for all web components used in their application when using components from `@microsoft/mgt-components`. Importing from the root of `@microsoft/mgt-components` no longer has an automatic registration side effect. **NOTE** Components from `@microsoft/mgt-react` will automatically register the underlying web component when they are used for the first time.
* MgtPersonCard no longer has a static config property.This config has been moved to the MgtPersonCardConfig class to allow developers to import the config and associated getMgtPersonCardScopes function at the top level of their applicaiton without automatically adding the weight of the full mgt-person-card component and dependencies to the entry file for their applications.
* default behavior of mgt-people-picker changes so presence is not shown unless show-presence attribute or showPresence property are set
* applications importing `@microsoft/mgt-react` but not using the wrapper components will not have components automatically registered in the browser. This leads to a breaking change when these applications emit raw web component markup rather than using the wrapper components.

### Features

* add edit funtionality to mgt-todo ([#2783](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2783)) ([64acd1f](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/64acd1f19830f29a4557bbbf8f673d5acdf6db96))
* add ElectronContextBridgeProvider ([#2914](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2914)) ([8900eb4](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/8900eb44bf646e192de81c4d11832d8cdd8f0ae8))
* add optional person-card to people picker ([#2900](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2900)) ([65ca8e2](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/65ca8e2a5fcdb648346c32b3e07de23b601d8315))
* add show-presence to mgt-people-picker ([#2812](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2812)) ([f5bf7cc](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/f5bf7cc86467de270b059e340c0cf0f4d29af8e4))
* add support for nested values in mgt-picker key-name ([#2917](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2917)) ([e79fbdc](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/e79fbdc860ca43b6b1560870e87a5b7bc26f69ca))
* automatically convert disambiguation value to lowercase ([#2898](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2898)) ([992ab85](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/992ab853f5cf1fbbb931c84f65ed81bf3114f2af))
* convert attribute enums to string unions ([#2962](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2962)) ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* deprecate mgt-spfx package ([#2940](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2940)) ([3da9560](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/3da9560dbbb14f2dd8bfa71d2e5c1122f7185e66))
* enable live code inclusion for consuming applications ([#2642](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2642)) ([c41d719](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/c41d7190f771513583deac46e5c57fdf17575d81))
* enable user sign-in for storybook ([#2851](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2851)) ([335c2f3](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/335c2f364768ee7b234bf6da395ad34fd01a8974))
* promoting search components to GA ([#2909](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2909)) ([86697f4](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/86697f4b44df064af9a472d7cb69cb68c5ffe9d5))
* remove mgt-loader ([#2963](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2963)) ([ea0f71b](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/ea0f71be8bcf4892c93a6e36e256ce7c8f6c2a0b))
* rename mgt-tasks to mgt-planner ([#2890](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2890)) ([df8af8c](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/df8af8ce72ef98b98f56d88792c446c91d6cc1d9))
* require explicit component registration ([#2848](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2848)) ([b7db262](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/b7db262a77389717c449ef8d4c12343860dd9cb6))
* scope aware requests ([#2797](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2797)) ([81d124b](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/81d124b40af8abfd748c7b61fe49ec0b86b0250a))
* split config and permission methods out of mgt-person-card ([#2840](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2840)) ([8177699](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/8177699b48081cb330a1cf27683ff99bfb4fa096))
* use `@lit/task` to schedule async data fetching ([#2912](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2912)) ([14a96ff](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/14a96ff6a0c50e83996fc84d1d562ad1f12b76a8))


### Bug Fixes

* add connect img and frame csp directives ([#2910](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2910)) ([20eb7fc](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/20eb7fc475f58c175d4b4946a786ed827067514d))
* add method to clear selected channel in mgt-teams-channel-picker ([#2865](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2865)) ([c3a3d82](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/c3a3d821b5ef85cde1926ac6fe268217547fd6c4))
* adding headers and count on all potential advanced aad queries ([#2920](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2920)) ([90b2dd1](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/90b2dd14cb3014d154d01808541fc7cd3e149976))
* color inversion on suggestion list ([65ca8e2](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/65ca8e2a5fcdb648346c32b3e07de23b601d8315))
* consolidate person view types ([#2943](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2943)) ([6d44a17](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/6d44a17b89693de93b0a16df8788c57a39f3f901))
* correct filter concatenation in mgt-people-picker ([#2822](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2822)) ([18925a9](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18925a9d80f07e0c27e1d3a715d8fc099bacbd2c))
* correct permissions used for some requests ([#2953](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2953)) ([ec25e57](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/ec25e5778adf6d581e752f443040804c49c8e96f))
* direct reports list formatting ([#2930](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2930)) ([f2547d1](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/f2547d1f4305f68b3ce2bd0385778940ae507c4b))
* enable the input control when selectedPeople is cleared via code. ([#2792](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2792)) ([f54dc81](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/f54dc81fea4d371e133d297e170bfc800f567981))
* ensure filtering of tasks actually works ([#2894](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2894)) ([59cccb0](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/59cccb0419ee04b64d35629692a87437db563c01))
* ensure loginInitiated is fired every time ([2fb1064](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/2fb1064286ab4ccb00a3162c30fdb64ee8559bc6))
* ensure people-filters are added with and clause for people-picker ([#2826](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2826)) ([0d671e6](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/0d671e6da32473c860daf9ff23a7ddfc43ae72e0))
* enter email keypress behavior ([#2928](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2928)) ([53b291c](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/53b291c99a9d842e67acb225a77aba16a3ef4aaf))
* flyout vertical positioning ([#2771](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2771)) ([45163ed](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/45163ed2dfe6260a220cd9cb7a6531958abc18fe))
* guard on non-existent result ([#2931](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2931)) ([981e6f9](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/981e6f99dcdf0140247056f55969f3dcc0580904))
* increase area for placeholder ([#2921](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2921)) ([513031b](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/513031b85052b965480b72f5ed34319e3c67926f))
* mgt-person avatar size customization in vertical layout ([#2875](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2875)) ([4c41534](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/4c415342785c4409e6b7a0ba1f0430baed5afcd1))
* **permissions:** getGroupImage now correctly requires group.read.all or group.readwrite.all ([#2797](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2797)) ([81d124b](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/81d124b40af8abfd748c7b61fe49ec0b86b0250a))
* **permissions:** updated todo and planner permissions ([#2797](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2797)) ([81d124b](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/81d124b40af8abfd748c7b61fe49ec0b86b0250a))
* presence fallback logic ([#2849](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2849)) ([1ab1970](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/1ab19706f3d7e5a31c81ab9bbead8f6c90e82373))
* presence icons for dark forced colors ([#2817](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2817)) ([00b168b](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/00b168bfe5fee257b2dee0056e1c4758630cb95a))
* register components for use in stories ([335c2f3](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/335c2f364768ee7b234bf6da395ad34fd01a8974))
* remove readonly props from react components ([#2946](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2946)) ([267bc19](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/267bc198594f2bb6716d93bd1fac3eb4024ce40f))
* revert csp tag in developer index.html ([#2910](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2910)) ([20eb7fc](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/20eb7fc475f58c175d4b4946a786ed827067514d))
* stop keydown from bubbling beyond people-picker ([#2892](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2892)) ([ad4cfa3](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/ad4cfa38187b2c9f3b4f467267e507ecea273eed))
* update person details when mgt-person attributes are changed ([#2871](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2871)) ([9c53cbf](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/9c53cbf02cd455d6fb94e831c2ed7bd5e588b4c8))
* update rollup and rollup config ([#2969](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2969)) ([606fffb](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/606fffb82c3dfecffb0822c56c8ae038efbd99af))
* update the sandbox fallback url ([#2924](https://github.com/microsoftgraph/microsoft-graph-toolkit/issues/2924)) ([ebf5ed3](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/ebf5ed348c1a9edf757e9fe26a26dbba59853c81))


### Code Refactoring

* avatarType renamed to AvatarType and converted to string union type ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* GroupType is now a string union type and not an enum ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* groupType property on MgtPeoplePicker is now GroupType[] ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* PersonCardInteraction is now a string union type and not an enum ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* PersonType is now a string union type and not an enum ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* ResponseType for mgt-get converted to string union type from enum ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* UserType is now a string union type and not an enum ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))
* ViewType is now a string union type and not an enum ([18d0aec](https://github.com/microsoftgraph/microsoft-graph-toolkit/commit/18d0aec2030463fb9324ec380d3a4c5b64064b98))

## [3.1.3](https://github.com/microsoftgraph/microsoft-graph-toolkit/compare/v3.1.2...v3.1.3) (2023-10-06)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "root",
"private": true,
"version": "3.1.3",
"version": "4.0.0",
"workspaces": {
"packages": [
"packages/*",
Expand Down

0 comments on commit 9e9242e

Please sign in to comment.