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

[JS] chore: dependencies cleanup: typescript, teamsfx, and browserify #2014

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

corinagum
Copy link
Collaborator

@corinagum corinagum commented Sep 13, 2024

Linked issues

closes: #1947
closes #1371

TLDR: Node 20 is now supported!!! If you're eager for this, you shouldn't need to wait for a release, as the affected packages were our samples.

Details

  • Modified package configuration for typescript to only allow patch updates. See Change details below for more information. This is (ideally) temporary.
  • Remove @microsoft/teamsfx as a dependency - it turns out this dependency is entirely unused, but due to sub-dependencies was preventing us from being able to support Node >=18. Because of this and botbuilder-js@4.23.x now supporting node 20, teams-ai js package now also runs with node 20 too!
  • Removed browserify - unused dependency
  • Updated Powered by AI docs to slightly clarify how AI module may use a planner.

Change details

TS made an update that in 5.6 reveals previously 'hidden' TS errors.
gpt-tokenizer and botbuilder have TS errors that 5.6 catches. I filed bugs for both packages:

[Bug] Cannot upgrade to TS 5.6x due to build errors · Issue #49 · niieani/gpt-tokenizer (github.com)
Cannot bump typescript to 5.6 due to botbuilder INodeBuffer error · Issue #4746 · microsoft/botbuilder-js (github.com)

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

Additional information

Feel free to add other relevant information below

@corinagum corinagum merged commit c933428 into main Sep 13, 2024
12 checks passed
@corinagum corinagum deleted the cg/package-cleanup branch September 13, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants