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

fix(tools): bump northstar packages v9 deps on dep mismatch resolution #25806

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

Hotell
Copy link
Contributor

@Hotell Hotell commented Nov 28, 2022

@@ -197,7 +197,7 @@ export function isPackageVersionConverged(versionString: string) {

export function isPackageVersionPrerelease(versionString: string) {
const version = semver.parse(versionString);
return version?.prerelease?.length && version?.prerelease?.length > 0;
return Boolean(version?.prerelease?.length && version?.prerelease?.length > 0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

casted to explicitly return boolean instead of undefined/number/boolean


updateJson(tree, config.paths.packageJson, (packageJson: PackageJson) => {
if (packageJson.dependencies) {
packageJson.dependencies = getUpdatedDependencies(tree, packageJson.dependencies);
packageJson.dependencies = getUpdatedDependencies(tree, { dependencies: packageJson.dependencies, scope });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

more args needed -> refactored to options pattern

@@ -125,7 +125,7 @@ describe('dependency-mismatch generator', () => {
});
await generator(appTree);

const packageJson: PackageJson = await readTargetPackageJson();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these awaits dont do anything as readTargetPackageJson is sync

@fabricteam
Copy link
Collaborator

📊 Bundle size report

🤖 This report was generated against 0da8d7556d18b42a7c702c513e702ba3723d64d3

@size-auditor
Copy link

size-auditor bot commented Nov 28, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 0da8d7556d18b42a7c702c513e702ba3723d64d3 (build)

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f3bd52a:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@Hotell Hotell marked this pull request as ready for review November 28, 2022 16:58
@Hotell Hotell requested a review from a team as a code owner November 28, 2022 16:59
@Hotell Hotell changed the title fix(tools): bump norhtstar packages v9 deps on dep mismatch resolution fix(tools): bump northstar packages v9 deps on dep mismatch resolution Nov 28, 2022
@@ -73,3 +84,11 @@ function getUpdatedDependencies(tree: Tree, dependencies: Record<string, string>
return acc;
}, dependencies);
}

function getProjectScope(project: ReturnType<typeof getProjectConfig>) {
Copy link
Member

Choose a reason for hiding this comment

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

move this to utils?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I was hesitant about that :D , we can do that later if we find shared usage for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do a follow - normalizing all tags and tweaking this to utils

Copy link
Member

@ling1726 ling1726 left a comment

Choose a reason for hiding this comment

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

scope is a nice idea, future generators should use this option if we need specific handling by library 👍

@Hotell Hotell merged commit 9d164b9 into microsoft:master Nov 29, 2022
@Hotell Hotell deleted the hotell/fix/25316 branch November 29, 2022 11:04
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Nov 29, 2022
* master: (34 commits)
  chore(react-tooltip): migrate to new package structure (microsoft#25818)
  chore(react-field): migrate to new package structure (microsoft#25817)
  Update vr screenshotdiff lib to accept vr host url as param (microsoft#25772)
  feat(scripts): enable strict checking for additional sub-folders(packages) v4 (microsoft#25710)
  fix(tools): bump norhtstar packages v9 deps on dep mismatch resolution (microsoft#25806)
  feat: remove react-storybook and replace its functionality via standard react-storybook-addon package (microsoft#25786)
  applying package updates
  chore(react-spinbutton): migrate to new package structure (microsoft#25813)
  chore(react-spinner): migrate to new package structure (microsoft#25814)
  chore(react-provider): migrate to new package structure (microsoft#25809)
  chore(react-radio, shared-contexts): migrate to new package structure (microsoft#25810)
  chore(react-theme): migrate to new package structure (microsoft#25812)
  docs: add Fluent UI Insights EP04 to README (microsoft#25775)
  chore(react-migration-v8-v9): use same build process/setup as v9/ts-solution packages (microsoft#25679)
  docs: Improves `Table` documentation (microsoft#25787)
  feat: improve react-18 tests (microsoft#25758)
  docs: Add examples for DataGrid (microsoft#25783)
  chore(react-tree): scaffold TreeItemLayout (microsoft#25781)
  perf: make ts-minbar test compilation faster and asset preparation simpler (microsoft#25754)
  chore: creates TreeItem and basic Tree (microsoft#25742)
  ...
Hotell added a commit to Hotell/fluentui that referenced this pull request Feb 9, 2023
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.

dependency-mismatch generator doesn't handle portal compat and northstar
5 participants