Skip to content

Commit

Permalink
Merge branch 'main' into CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigMacomber authored Oct 31, 2024
2 parents 2f4ec4f + 8a833a6 commit 59862d1
Show file tree
Hide file tree
Showing 102 changed files with 981 additions and 799 deletions.
14 changes: 14 additions & 0 deletions .changeset/floppy-forks-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"fluid-framework": minor
"@fluidframework/tree": minor
---
---
"section": tree
---

`TreeNodeSchemaClass` now specifies its `TNode` as `TreeNode`

`TreeNodeSchemaClass`'s `TNode` parameter used to be `unknown` and was recently improved to be the more specific `TreeNode | TreeLeafValue`.
This change further narrows this to `TreeNode`.

`TreeNodeSchema`, which is more commonly used, still permits `TNode` of `TreeNode | TreeLeafValue`, so this change should have little impact on most code, but in some edge cases it can result in slightly more specific typing.
2 changes: 1 addition & 1 deletion azure/packages/test/scenario-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"cross-env": "^7.0.3",
"js-yaml": "^4.1.0",
"mocha": "^10.2.0",
"sinon": "^17.0.1",
"sinon": "^18.0.1",
"start-server-and-test": "^2.0.3",
"tinylicious": "^5.0.0",
"uuid": "^9.0.0"
Expand Down
49 changes: 37 additions & 12 deletions build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,29 @@
"license": "MIT",
"author": "Microsoft and contributors",
"scripts": {
"build": "pnpm run generate:packageList && fluid-build --task build",
"build": "fluid-build --task build",
"build:compile": "fluid-build --task compile",
"build:docs": "fluid-build --task build:docs",
"build:fast": "fluid-build --worker",
"changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 2 --commit-path . -t build-tools_v --context lerna.json",
"check:biome": "biome check .",
"check:format": "npm run check:biome",
"checks": "fluid-build --task checks",
"ci:build": "npm run build",
"ci:eslint": "fluid-build --task eslint",
"ci:test": "npm run test:mocha",
"ci:test:coverage": "npm run test:coverage",
"clean": "pnpm run -r --no-sort --stream clean && npm run clean:docs && npm run clean:nyc",
"clean": "fluid-build --task clean",
"clean:docs": "rimraf --glob \"**/_api-extractor-temp\"",
"clean:nyc": "rimraf --glob \"nyc/**\"",
"commit": "git-cz",
"format": "npm run format:biome",
"format:biome": "biome check --write .",
"generate:packageList": "concurrently \"npm:generate:packageList:*\"",
"generate:packageList:internal-build": "flub list --no-private -g build-tools --feed internal-build --outFile feeds/internal-build.txt",
"generate:packageList:internal-dev": "flub list --no-private -g build-tools --feed internal-dev --outFile feeds/internal-dev.txt",
"generate:packageList:internal-test": "flub list --no-private -g build-tools --feed internal-test --outFile feeds/internal-test.txt",
"generate:packageList:public": "flub list --no-private -g build-tools --feed public --outFile feeds/public.txt",
"generate:packageList:internal-build": "flub list build-tools --no-private --feed internal-build --outFile feeds/internal-build.txt",
"generate:packageList:internal-dev": "flub list build-tools --no-private --feed internal-dev --outFile feeds/internal-dev.txt",
"generate:packageList:internal-test": "flub list build-tools --no-private --feed internal-test --outFile feeds/internal-test.txt",
"generate:packageList:public": "flub list build-tools --no-private --feed public --outFile feeds/public.txt",
"preinstall": "node ../scripts/only-pnpm.cjs",
"install:commitlint": "npm install --global @commitlint/config-conventional",
"lint": "npm run syncpack:deps && npm run syncpack:versions && npm run check:format && npm run ci:eslint",
Expand Down Expand Up @@ -100,6 +101,36 @@
"dependenciesComments": {
"@fluidframework/build-tools": "Provides fluid-build which is used by the `build:fast` script. To allow this to work when the workspace version of build-tools has not been built yet, a prepackaged version is depended on. If this self-dependency becomes problematic, the `build` script can be used which does not require it."
},
"fluidBuild": {
"tasks": {
"build": {
"dependsOn": [
"^build",
"generate:packageList",
"syncpack:deps",
"syncpack:versions"
],
"script": false
},
"checks": {
"dependsOn": [
"check:format",
"generate:packageList",
"syncpack:deps",
"syncpack:versions"
],
"script": false
},
"clean": {
"dependsOn": [
"^clean",
"clean:docs",
"clean:nyc"
],
"script": false
}
}
},
"pnpm": {
"peerDependencyComments": [
"@types/node is a peer dependency because of build tools. The package is not needed because it's only used for compilation. It's not needed at runtime.",
Expand Down Expand Up @@ -132,12 +163,6 @@
"type-fest",
"typescript"
]
},
"patchedDependenciesComments": [
"jssm-viz is a dependency of jssm-viz-cli, but doesn't work with the latest jssm and TypeScript. This patch contains the changes from https://github.com/StoneCypher/jssm-viz/pull/54, which fixes the problem."
],
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
8 changes: 4 additions & 4 deletions build-tools/packages/build-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"/oclif.manifest.json"
],
"scripts": {
"build": "concurrently npm:build:compile npm:lint && concurrently npm:build:docs npm:build:diagrams",
"build:compile": "npm run tsc && npm run build:test && npm run build:copy && npm run build:readme",
"build": "fluid-build --task build",
"build:compile": "fluid-build --task compile",
"build:copy": "copyfiles -u 1 \"src/**/*.fsl\" lib",
"build:diagrams": "jssm-viz -i \"./src/machines/*.fsl\"",
"build:docs": "api-extractor run --local",
Expand Down Expand Up @@ -171,7 +171,7 @@
"eslint-config-oclif": "^5.2.1",
"eslint-config-oclif-typescript": "^3.1.12",
"eslint-config-prettier": "~9.1.0",
"jssm-viz-cli": "5.101.0",
"jssm-viz-cli": "^5.101.0",
"mocha": "^10.7.3",
"mocha-multi-reporters": "^1.5.1",
"mocked-env": "^1.3.5",
Expand All @@ -185,7 +185,7 @@
},
"fluidBuild": {
"tasks": {
"compile": {
"build": {
"dependsOn": [
"...",
"build:diagrams"
Expand Down
4 changes: 2 additions & 2 deletions build-tools/packages/build-infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"/oclif.manifest.json"
],
"scripts": {
"build": "fluid-build . --task build",
"build": "fluid-build --task build",
"build:commonjs": "npm run tsc && npm run build:test",
"build:compile": "npm run build:commonjs",
"build:compile": "fluid-build --task compile",
"build:docs": "api-extractor run --local",
"build:esnext": "tsc --project ./tsconfig.json",
"build:manifest": "oclif manifest",
Expand Down
4 changes: 2 additions & 2 deletions build-tools/packages/build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"fluid-tsc": "bin/fluid-tsc"
},
"scripts": {
"build": "concurrently npm:build:compile npm:lint",
"build": "fluid-build --task build",
"build:commonjs": "npm run tsc && npm run build:test",
"build:compile": "npm run build:commonjs",
"build:compile": "fluid-build --task compile",
"build:test": "tsc --project ./src/test/tsconfig.json",
"check:biome": "biome check .",
"check:format": "npm run check:biome",
Expand Down
6 changes: 3 additions & 3 deletions build-tools/packages/bundle-size-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "concurrently npm:build:compile npm:lint && npm run build:docs",
"build:compile": "concurrently npm:tsc npm:build:copy",
"build": "fluid-build --task build",
"build:compile": "fluid-build --task compile",
"build:copy": "copyfiles -u 1 \"src/**/*.fsl\" dist",
"build:docs": "api-extractor run --local",
"check:biome": "biome check .",
"check:format": "npm run check:biome",
"ci:build:docs": "api-extractor run",
"clean": "rimraf --glob dist \"*.tsbuildinfo\" _api-extractor-temp",
"clean": "rimraf --glob dist \"*.tsbuildinfo\" _api-extractor-temp \"*.build.log\"",
"compile": "fluid-build . --task compile",
"eslint": "eslint --format stylish src",
"eslint:fix": "eslint --format stylish src --fix",
Expand Down
4 changes: 2 additions & 2 deletions build-tools/packages/version-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"/oclif.manifest.json"
],
"scripts": {
"build": "concurrently npm:build:compile npm:lint && npm run build:docs",
"build": "fluid-build --task build",
"build:commonjs": "npm run tsc && npm run build:test",
"build:compile": "npm run build:commonjs && npm run build:readme",
"build:compile": "fluid-build --task compile",
"build:docs": "api-extractor run --local",
"build:manifest": "oclif manifest",
"build:readme": "oclif readme --version 0.0.0",
Expand Down
14 changes: 4 additions & 10 deletions build-tools/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build-tools/syncpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = {

{
label: "Must use exact dependency ranges",
dependencies: ["jssm-viz-cli", "sort-package-json"],
dependencies: ["sort-package-json"],
packages: ["**"],
range: "",
},
Expand Down
2 changes: 1 addition & 1 deletion common/lib/common-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"puppeteer": "^23.6.0",
"rewire": "^5.0.0",
"rimraf": "^4.4.1",
"sinon": "^17.0.1",
"sinon": "^18.0.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "~5.4.5"
Expand Down
Loading

0 comments on commit 59862d1

Please sign in to comment.