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

Correct widget template package dependency versions #1068

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

rosscourt
Copy link
Contributor

The dependencies are currently being copied into the template from the package.json, resulting in invalid workspace versions in the end user's project. The convention used in all other templates is for these in-repo packages to be declared in the handlebars file instead. E.g:

"dependencies": {
"{{osdkPackage}}": "latest",
"@osdk/client": "{{clientVersion}}",
"@osdk/oauth": "^1.0.0",
"@osdk/react": "^0.3.0-beta.0"
},

I'm targeting #1065 because then I can also pick up a ^1 version of the Vite plugin and won't need to further bump template versions to pick up fixes for that package.

Base automatically changed from rc/rename-vite-plugin to main December 18, 2024 15:09
@rosscourt rosscourt force-pushed the rc/fix-widget-template-deps-v2 branch from b137f74 to 5bd5b00 Compare December 18, 2024 15:27
changeset

update lock

update in-repo generated package

update lock
@rosscourt rosscourt force-pushed the rc/fix-widget-template-deps-v2 branch from d7186cb to 6be1cf0 Compare December 19, 2024 11:14
// Use locally generated SDK in the monorepo
/"@osdk\/widget.vite-plugin.unstable": "\^.*?"/,
`"@osdk/widget.vite-plugin.unstable": "workspace:*"`,
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ssanjay1 I needed to introduce these replacements for the in-repo generator checks to pass

@rosscourt rosscourt marked this pull request as ready for review December 19, 2024 11:49
@rosscourt rosscourt requested a review from ssanjay1 December 19, 2024 11:55
@rosscourt rosscourt merged commit 23754dd into main Dec 19, 2024
8 checks passed
@rosscourt rosscourt deleted the rc/fix-widget-template-deps-v2 branch December 19, 2024 20:45
ericanderson added a commit that referenced this pull request Jan 13, 2025
* origin/main:
  Add typed lint checks and fix promise related things (#1081)
  Version Packages (beta) (#1090)
  Export hydrateObjectSetFromRid from internal (#1087)
  Fetch by RID experimental (#1088)
  Creates new internal export for helper methods we want to hide (#1084)
  Add's more descriptive error messages for 429 errors and other errors with no body (#1082)
  Update react template per discussion (#1077)
  OSDK client internal property is hidden from output .d.ts (#1079)
  Revert `api:x-read/write` back to `api:read/write-x` (#1076)
  Move from "views" naming to "widgets" (#1075)
  Fixes attachment uploads in Browser context (#1064)
  Use foundry-config-json in widget-manifest-vite-plugin (#1055)
  Version Packages (beta) (#1072)
  Ignore unknown types (#1067)
  Correct widget template package dependency versions (#1068)
  Make interface type status configurable (#1069)
  Fix onOutOfDate handler from firing twice (#1071)
  Rename @osdk/widget-manifest-vite-plugin to @osdk/widget.vite-plugin.unstable (#1065)
  Fixing main (#1066)
  Add structs read support (#1047)
  Handle Vite plugin injections in Custom Widget Vite plugin (#1063)
  Version Packages (beta) (#1060)
  Fix unused import (#1061)
  Revive eslint-plugin-unused-imports (#1057)
  Fix URL for getBulkLinks (#1058)
  Split foundry-config-json package (#1054)
  Add package.json auto version strategy (#1052)
  Remove crypto from OSDK (#1051)
  Support site snapshot upload (#1049)
  Try catch subscription handlers (#1019)
  Experiment with no proxy for objects (#1031)
  Bump unstable widget packages to v1 to avoid undesired v0.x version behavior (#1050)
  WeakRef the as()'d objects (#1043)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants