Skip to content

Commit

Permalink
Change all internal dependencies to be tilde not caret (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericanderson authored Jul 9, 2024
1 parent 62bae76 commit 388dba9
Show file tree
Hide file tree
Showing 41 changed files with 296 additions and 264 deletions.
32 changes: 32 additions & 0 deletions .changeset/lazy-jobs-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
"@osdk/foundry.thirdpartyapplications": minor
"@osdk/internal.foundry.ontologiesv2": minor
"@osdk/internal.foundry.ontologies": minor
"@osdk/internal.foundry.datasets": minor
"@osdk/internal.foundry.models": minor
"@osdk/platform-sdk-generator": minor
"@osdk/shared.net.platformapi": minor
"@osdk/foundry-sdk-generator": minor
"@osdk/internal.foundry.core": minor
"@osdk/client.test.ontology": minor
"@osdk/generator-converters": minor
"@osdk/cli.cmd.typescript": minor
"@osdk/shared.client.impl": minor
"@osdk/example-generator": minor
"@osdk/foundry.security": minor
"@osdk/internal.foundry": minor
"@osdk/shared.net.fetch": minor
"@osdk/legacy-client": minor
"@osdk/foundry.core": minor
"@osdk/shared.test": minor
"@osdk/client.api": minor
"@osdk/shared.net": minor
"@osdk/generator": minor
"@osdk/foundry": minor
"@osdk/client": minor
"@osdk/maker": minor
"@osdk/api": minor
"@osdk/cli": minor
---

Change all internal dependencies to be tilde not caret
4 changes: 2 additions & 2 deletions .monorepolint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ export default {
],
options: {
dependencies: {
"@osdk/shared.client": "workspace:^",
"@osdk/shared.net.platformapi": "workspace:^",
"@osdk/shared.client": "workspace:~",
"@osdk/shared.net.platformapi": "workspace:~",
},
},
}),
Expand Down
12 changes: 6 additions & 6 deletions examples-extra/basic/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
"typecheck": "../../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/client": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/client": "workspace:~",
"@osdk/client.api": "workspace:*",
"@osdk/examples.basic.sdk": "workspace:^",
"@osdk/foundry": "workspace:^",
"@osdk/internal.foundry": "workspace:^",
"@osdk/examples.basic.sdk": "workspace:~",
"@osdk/foundry": "workspace:~",
"@osdk/internal.foundry": "workspace:~",
"chalk": "^5.3.0",
"pino": "^9.1.0",
"pino-pretty": "^11.0.0",
"tiny-invariant": "^1.3.1"
},
"devDependencies": {
"@osdk/cli": "workspace:^",
"@osdk/cli": "workspace:~",
"@types/node": "^18.0.0",
"ts-expect": "^1.3.0"
},
Expand Down
14 changes: 7 additions & 7 deletions examples-extra/basic/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
"typecheck": "../../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/client.api": "workspace:*"
},
"peerDependencies": {
"@osdk/api": "workspace:^",
"@osdk/client": "workspace:^",
"@osdk/client.api": "workspace:^"
"@osdk/api": "workspace:~",
"@osdk/client": "workspace:~",
"@osdk/client.api": "workspace:~"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@osdk/api": "workspace:^",
"@osdk/cli.cmd.typescript": "workspace:^",
"@osdk/client.api": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/cli.cmd.typescript": "workspace:~",
"@osdk/client.api": "workspace:~",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
},
Expand Down
20 changes: 10 additions & 10 deletions examples-extra/docs_example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@
"preview": "vite preview"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/client": "workspace:^",
"@osdk/client.api": "workspace:^",
"@osdk/legacy-client": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/client": "workspace:~",
"@osdk/client.api": "workspace:~",
"@osdk/legacy-client": "workspace:~",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swr": "^2.2.5"
},
"peerDependencies": {
"@osdk/api": "workspace:^",
"@osdk/client": "workspace:^",
"@osdk/client.api": "workspace:^"
"@osdk/api": "workspace:~",
"@osdk/client": "workspace:~",
"@osdk/client.api": "workspace:~"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@osdk/api": "workspace:^",
"@osdk/cli.cmd.typescript": "workspace:^",
"@osdk/client.api": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/cli.cmd.typescript": "workspace:~",
"@osdk/client.api": "workspace:~",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
"@typescript-eslint/eslint-plugin": "^7.9.0",
Expand Down
8 changes: 4 additions & 4 deletions examples-extra/one_dot_one/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"typecheck": "../../scripts/build_common/typecheck.sh both"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/generator": "workspace:^",
"@osdk/legacy-client": "workspace:^"
"@osdk/api": "workspace:~",
"@osdk/generator": "workspace:~",
"@osdk/legacy-client": "workspace:~"
},
"peerDependencies": {
"@osdk/api": "^1.8.0",
Expand All @@ -42,7 +42,7 @@
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@osdk/api": "^1.8.0",
"@osdk/cli.cmd.typescript": "workspace:^",
"@osdk/cli.cmd.typescript": "workspace:~",
"@osdk/legacy-client": "^2.4.0-beta.0",
"@types/node": "^18.0.0",
"tslib": "^2.6.2",
Expand Down
18 changes: 9 additions & 9 deletions examples-extra/todoapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
"preview": "vite preview"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/client": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/client": "workspace:~",
"@osdk/client.api": "workspace:*",
"@osdk/oauth": "workspace:^",
"@osdk/oauth": "workspace:~",
"core-js": "^3.37.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swr": "^2.2.5",
"tiny-invariant": "^1.3.3"
},
"peerDependencies": {
"@osdk/api": "workspace:^",
"@osdk/client": "workspace:^",
"@osdk/client.api": "workspace:^"
"@osdk/api": "workspace:~",
"@osdk/client": "workspace:~",
"@osdk/client.api": "workspace:~"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@osdk/api": "workspace:^",
"@osdk/cli.cmd.typescript": "workspace:^",
"@osdk/client.api": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/cli.cmd.typescript": "workspace:~",
"@osdk/client.api": "workspace:~",
"@types/core-js": "^2.5.8",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.2.25",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"micromatch": "^4.0.5",
"mytsup": "workspace:^",
"mytsup": "workspace:~",
"tsc-absolute": "^1.0.1",
"tsconfig": "workspace:^",
"tsconfig": "workspace:~",
"tsup": "^8.0.2",
"turbo": "^1.13.2",
"typescript": "^5.5.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"typecheck": "../../scripts/build_common/typecheck.sh both"
},
"dependencies": {
"@osdk/gateway": "workspace:^",
"@osdk/shared.net": "workspace:^",
"@osdk/gateway": "workspace:~",
"@osdk/shared.net": "workspace:~",
"@types/geojson": "^7946.0.13",
"fetch-retry": "^6.0.0",
"tiny-invariant": "^1.3.1"
Expand Down
8 changes: 4 additions & 4 deletions packages/cli.cmd.typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
},
"dependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@osdk/cli.common": "workspace:^",
"@osdk/gateway": "workspace:^",
"@osdk/generator": "workspace:^",
"@osdk/shared.net": "workspace:^",
"@osdk/cli.common": "workspace:~",
"@osdk/gateway": "workspace:~",
"@osdk/generator": "workspace:~",
"@osdk/shared.net": "workspace:~",
"consola": "^3.2.3",
"fast-deep-equal": "^3.1.3",
"find-up": "^7.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/cli.cmd.typescript/src/generate/handleGenerate.mts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ async function generateClientSdk(

const dependencyVersions = await getDependencyVersions();
if (args.internal) {
dependencyVersions.osdkApiVersion = "workspace:^";
dependencyVersions.osdkClientApiVersion = "workspace:^";
dependencyVersions.osdkClientVersion = "workspace:^";
dependencyVersions.osdkLegacyClientVersion = "workspace:^";
dependencyVersions.osdkApiVersion = "workspace:~";
dependencyVersions.osdkClientApiVersion = "workspace:~";
dependencyVersions.osdkClientVersion = "workspace:~";
dependencyVersions.osdkLegacyClientVersion = "workspace:~";
}

const expectedDeps = getExpectedDependencies(
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
},
"dependencies": {
"@arethetypeswrong/cli": "^0.15.2",
"@osdk/api": "workspace:^",
"@osdk/gateway": "workspace:^",
"@osdk/generator": "workspace:^",
"@osdk/shared.net": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/gateway": "workspace:~",
"@osdk/generator": "workspace:~",
"@osdk/shared.net": "workspace:~",
"ajv": "^8.13.0",
"archiver": "^7.0.1",
"consola": "^3.2.3",
Expand All @@ -45,8 +45,8 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@osdk/cli.cmd.typescript": "workspace:^",
"@osdk/cli.common": "workspace:^",
"@osdk/cli.cmd.typescript": "workspace:~",
"@osdk/cli.common": "workspace:~",
"@types/archiver": "^6.0.2",
"@types/ngeohash": "^0.6.8",
"@types/node": "^18.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/client.api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"typecheck": "../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/api": "workspace:^"
"@osdk/api": "workspace:~"
},
"peerDependencies": {
"@osdk/api": "workspace:^",
"@osdk/internal.foundry": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/internal.foundry": "workspace:~",
"@types/geojson": "^7946.0.14"
},
"devDependencies": {
"@osdk/api": "workspace:^",
"@osdk/internal.foundry": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/internal.foundry": "workspace:~",
"@types/geojson": "^7946.0.14",
"type-fest": "^4.18.2",
"typescript": "^5.5.2"
Expand Down
6 changes: 3 additions & 3 deletions packages/client.test.ontology/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"@osdk/api": "workspace:*"
},
"devDependencies": {
"@osdk/api": "workspace:^",
"@osdk/generator": "workspace:^",
"@osdk/shared.test": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/generator": "workspace:~",
"@osdk/shared.test": "workspace:~",
"typescript": "^5.5.2"
},
"publishConfig": {
Expand Down
18 changes: 9 additions & 9 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
"typecheck": "../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/client.api": "workspace:*",
"@osdk/client.unstable": "workspace:*",
"@osdk/client.unstable.osw": "workspace:*",
"@osdk/generator-converters": "workspace:^",
"@osdk/shared.client": "workspace:^",
"@osdk/shared.client.impl": "workspace:^",
"@osdk/shared.net.errors": "workspace:^",
"@osdk/shared.net.fetch": "workspace:^",
"@osdk/generator-converters": "workspace:~",
"@osdk/shared.client": "workspace:~",
"@osdk/shared.client.impl": "workspace:~",
"@osdk/shared.net.errors": "workspace:~",
"@osdk/shared.net.fetch": "workspace:~",
"@types/geojson": "^7946.0.14",
"conjure-lite": "^0.4.4",
"fast-deep-equal": "^3.1.3",
Expand All @@ -56,9 +56,9 @@
}
},
"devDependencies": {
"@osdk/client.test.ontology": "workspace:^",
"@osdk/internal.foundry": "workspace:^",
"@osdk/shared.test": "workspace:^",
"@osdk/client.test.ontology": "workspace:~",
"@osdk/internal.foundry": "workspace:~",
"@osdk/shared.test": "workspace:~",
"@types/geojson": "^7946.0.14",
"@types/ws": "^8.5.10",
"jest-extended": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/example-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"typecheck": "../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/create-app": "workspace:^",
"@osdk/create-app": "workspace:~",
"consola": "^3.2.3",
"dir-compare": "^5.0.0",
"find-up": "^7.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/foundry-sdk-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
"typecheck": "../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/api": "workspace:^",
"@osdk/gateway": "workspace:^",
"@osdk/generator": "workspace:^",
"@osdk/legacy-client": "workspace:^",
"@osdk/api": "workspace:~",
"@osdk/gateway": "workspace:~",
"@osdk/generator": "workspace:~",
"@osdk/legacy-client": "workspace:~",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"consola": "^3.2.3",
Expand All @@ -44,7 +44,7 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@osdk/shared.test": "workspace:^",
"@osdk/shared.test": "workspace:~",
"@types/node": "^18.0.0",
"@types/yargs": "^17.0.29",
"typescript": "^5.5.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/foundry.core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"typecheck": "../../scripts/build_common/typecheck.sh esm"
},
"dependencies": {
"@osdk/shared.client": "workspace:^",
"@osdk/shared.net.platformapi": "workspace:^"
"@osdk/shared.client": "workspace:~",
"@osdk/shared.net.platformapi": "workspace:~"
},
"devDependencies": {
"typescript": "^5.5.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/foundry.security/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"dependencies": {
"@osdk/foundry.core": "workspace:*",
"@osdk/shared.client": "workspace:^",
"@osdk/shared.net.platformapi": "workspace:^"
"@osdk/shared.client": "workspace:~",
"@osdk/shared.net.platformapi": "workspace:~"
},
"devDependencies": {
"typescript": "^5.5.2"
Expand Down
Loading

0 comments on commit 388dba9

Please sign in to comment.