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

chore(main): release 4.0.0 #2767

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

gavinbarron
Copy link
Member

@gavinbarron gavinbarron commented Oct 10, 2023

πŸ¦’ A new release is coming up!

4.0.0 (2024-02-05)

⚠ 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)
  • 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

Bug Fixes

  • add connect img and frame csp directives (#2910) (20eb7fc)
  • add detail-line part attribute to person component (#2999) (b254e49)
  • add focus on input field when you click the button to add a new task (#2994) (573fa45)
  • add method to clear selected channel in mgt-teams-channel-picker (#2865) (c3a3d82)
  • adding headers and count on all potential advanced aad queries (#2920) (90b2dd1)
  • clean-up react-contoso homepage (#3008) (c8c564d)
  • color inversion on suggestion list (65ca8e2)
  • consolidate person view types (#2943) (6d44a17)
  • correct completion of todo items (#3018) (52d8ad9)
  • correct filter concatenation in mgt-people-picker (#2822) (18925a9)
  • correct permissions used for some requests (#2953) (ec25e57)
  • direct reports list formatting (#2930) (f2547d1)
  • enable the input control when selectedPeople is cleared via code. (#2792) (f54dc81)
  • ensure filtering of tasks actually works (#2894) (59cccb0)
  • ensure loginInitiated is fired every time (2fb1064)
  • ensure people-filters are added with and clause for people-picker (#2826) (0d671e6)
  • enter email keypress behavior (#2928) (53b291c)
  • flyout vertical positioning (#2771) (45163ed)
  • focus on the input when you cancel adding a todo (#3005) (14bb9c1)
  • guard on non-existent result (#2931) (981e6f9)
  • increase area for placeholder (#2921) (513031b)
  • mgt-person avatar size customization in vertical layout (#2875) (4c41534)
  • msal setActiveAccount error (#3017) (0bad7e5)
  • permissions: getGroupImage now correctly requires group.read.all or group.readwrite.all (#2797) (81d124b)
  • permissions: updated todo and planner permissions (#2797) (81d124b)
  • presence fallback logic (#2849) (1ab1970)
  • presence icons for dark forced colors (#2817) (00b168b)
  • register components for use in stories (335c2f3)
  • remove readonly props from react components (#2946) (267bc19)
  • revert csp tag in developer index.html (#2910) (20eb7fc)
  • set add button to disabled until task name is provided (#2996) (eec74d0)
  • stop keydown from bubbling beyond people-picker (#2892) (ad4cfa3)
  • typing for LocalizationHelper.strings (#2998) (0317fc2)
  • update person details when mgt-person attributes are changed (#2871) (9c53cbf)
  • update rollup and rollup config (#2969) (606fffb)
  • update the sandbox fallback url (#2924) (ebf5ed3)

Code Refactoring

  • avatarType renamed to AvatarType and converted to string union type (18d0aec)
  • GroupType is now a string union type and not an enum (18d0aec)
  • groupType property on MgtPeoplePicker is now GroupType[] (18d0aec)
  • PersonCardInteraction is now a string union type and not an enum (18d0aec)
  • PersonType is now a string union type and not an enum (18d0aec)
  • ResponseType for mgt-get converted to string union type from enum (18d0aec)
  • UserType is now a string union type and not an enum (18d0aec)
  • ViewType is now a string union type and not an enum (18d0aec)

This PR was generated with Release Please. See documentation.

@gavinbarron gavinbarron requested a review from a team as a code owner October 10, 2023 15:39
@gavinbarron gavinbarron changed the title chore(main): release 3.2.0 chore(main): release 3.1.4 Oct 12, 2023
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 2 times, most recently from 23b37e3 to eda58d9 Compare October 19, 2023 07:18
@gavinbarron gavinbarron changed the title chore(main): release 3.1.4 chore(main): release 3.2.0 Oct 24, 2023
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 3 times, most recently from 6aa0190 to 107c984 Compare October 27, 2023 15:50
@gavinbarron gavinbarron changed the title chore(main): release 3.2.0 chore(main): release 4.0.0 Oct 30, 2023
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 7 times, most recently from 7ede174 to 6dab863 Compare November 6, 2023 18:32
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch from 6dab863 to 62a9111 Compare November 7, 2023 23:09
@gavinbarron gavinbarron added this to the v4.0.0 milestone Nov 9, 2023
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 6 times, most recently from dc4fc09 to 81f9dcd Compare November 14, 2023 14:27
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 2 times, most recently from 3542830 to b71bb30 Compare November 21, 2023 14:56
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 3 times, most recently from 0545879 to 6ff6d51 Compare December 1, 2023 16:16
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 5 times, most recently from 9e9242e to 0d3085b Compare January 31, 2024 16:42
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch 7 times, most recently from c67955c to 88bcdea Compare February 5, 2024 06:06
@gavinbarron gavinbarron force-pushed the release-please--branches--main--components--root branch from 88bcdea to 570ae5e Compare February 5, 2024 14:12
Copy link

github-actions bot commented Feb 5, 2024

Code Coverage

Package Line Rate Branch Rate Complexity Health
mgt-components.src.components 84% 75% 0 βœ”
mgt-components.src.components.mgt-contact 68% 83% 0 βž–
mgt-components.src.components.mgt-file 62% 100% 0 βž–
mgt-components.src.components.mgt-file-list 46% 100% 0 ❌
mgt-components.src.components.mgt-file-list.mgt-file-upload 49% 86% 0 ❌
mgt-components.src.components.mgt-get 22% 100% 0 ❌
mgt-components.src.components.mgt-messages 68% 100% 0 βž–
mgt-components.src.components.mgt-organization 47% 100% 0 ❌
mgt-components.src.components.mgt-person 79% 71% 0 βœ”
mgt-components.src.components.mgt-person-card 67% 48% 0 βž–
mgt-components.src.components.mgt-picker 80% 100% 0 βœ”
mgt-components.src.components.mgt-profile 40% 100% 0 ❌
mgt-components.src.components.mgt-tasks-base 87% 100% 0 βœ”
mgt-components.src.components.mgt-theme-toggle 100% 100% 0 βœ”
mgt-components.src.components.mgt-todo 79% 100% 0 βœ”
mgt-components.src.components.sub-components.mgt-flyout 72% 53% 0 βž–
mgt-components.src.components.sub-components.mgt-spinner 100% 100% 0 βœ”
mgt-components.src.graph 38% 78% 0 ❌
mgt-components.src.styles 92% 80% 0 βœ”
mgt-components.src.utils 79% 27% 0 βœ”
mgt-element.dist.es6.components.src.components 72% 73% 0 βž–
mgt-element.dist.es6.mock.src.mock 91% 73% 0 βœ”
mgt-element.dist.es6.providers.src.providers 85% 76% 0 βœ”
mgt-element.dist.es6.src 91% 80% 0 βœ”
mgt-element.dist.es6.utils.src.utils 67% 71% 0 βž–
mgt-element.src 93% 40% 0 βœ”
mgt-element.src.components 78% 100% 0 βœ”
mgt-element.src.mock 86% 71% 0 βœ”
mgt-element.src.providers 84% 89% 0 βœ”
mgt-element.src.utils 72% 91% 0 βž–
Summary 66% (14216 / 21450) 67% (452 / 679) 0 βž–

Copy link

github-actions bot commented Feb 5, 2024

πŸš€ New react-contoso sample application deployed here

1 similar comment
Copy link

github-actions bot commented Feb 5, 2024

πŸš€ New react-contoso sample application deployed here

Copy link

github-actions bot commented Feb 5, 2024

πŸ“– The updated storybook is available here

1 similar comment
Copy link

github-actions bot commented Feb 5, 2024

πŸ“– The updated storybook is available here

@musale musale merged commit d5c993d into main Feb 5, 2024
14 checks passed
@musale musale deleted the release-please--branches--main--components--root branch February 5, 2024 15:04
@gavinbarron
Copy link
Member Author

Copy link

github-actions bot commented Feb 5, 2024

πŸš€ New react-contoso sample application deployed here

Copy link

github-actions bot commented Feb 5, 2024

πŸ“– The updated storybook is available here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants