Skip to content

Conversation

@bigbadcapers
Copy link
Contributor

@bigbadcapers bigbadcapers commented Nov 25, 2025

  • Code is up-to-date with the master branch
  • Your changes are covered by tests (if possible)
  • Package based on existing v8 @fluentui/react-file-type-icons with additional error checks, better documentation and testing.
  • You've run yarn change locally

# Conflicts (merged and resolved):
#	packages/react-file-type-icons/src/FileIconType.ts
#	packages/react-file-type-icons/src/FileTypeIconMap.ts
#	packages/react-file-type-icons/src/getFileTypeIconProps.ts
… wrapped in an if statement to filter unwanted properties from the prototype guard-for-in
@bigbadcapers bigbadcapers marked this pull request as ready for review November 26, 2025 20:31
@tudorpopams
Copy link
Contributor

hello @bigbadcapers , can you please provide more context about why this PR is needed?

@bigbadcapers
Copy link
Contributor Author

hello @bigbadcapers , can you please provide more context about why this PR is needed?

hey @tudorpopams i tagged you in a convo in Teams re this question, please lmk if we should do anything different, happy to adjust

"name": "@fluentui/react-file-type-icons",
"version": "8.15.2",
"description": "Fluent UI React file type icon set.",
"name": "@fluentui/react-file-type-icons-v8",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't really rename a public/published package. Also, I don't think we should ship a package with v8 in the name. What is the intention here?

Copy link
Contributor Author

@bigbadcapers bigbadcapers Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, check out the change a few lines down on 16..19. The change in line 2 is scoped to the yarn/npx workspace so everything compiles but the intent is that outwardly, the package in this folder location keeps publishing under the 8.x.x major semver, while the new package at packages/react-components/react-file-type-icons publishes unto the same @fluentui/react-file-type-icons NPM feed at 9.x.x

Is there a better way to deliver a v9 compatible package, ie by making changes "in-place" in the package here such that it conforms to v9 requirements and semantics needed by the folks in the Teams convo and others in the future? If so, my preference would be to overlay that here instead of having two packages for which i would have to maintain the FileTypeIconMap.ts and FileIconType enums on, for sure. Very happy to adjust if there is a better pattern to apply here to upgrades/migrations.

*the usage of the publishConfig attr is what i found researching how to do this, but i have ofc not been able to test live. will this approach work with our CI pipeline?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants