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

Emit types instead of classes for JavaScript #287

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

davidjgoss
Copy link
Contributor

@davidjgoss davidjgoss commented Feb 7, 2025

🤔 What's changed?

Changes the code generation for TypeScript to emit types rather than classes. Removes the reflect-metadata and class-transformer dependencies as a result, leaving us with almost no non-dev dependencies.

⚡️ What's your motivation?

Fixes #285.

🏷️ What kind of change is this?

  • 🏦 Refactoring/debt/DX (improvement to code design, tooling, etc. without changing behaviour)
  • 💥 Breaking change (incompatible changes to the API)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

@davidjgoss davidjgoss changed the title Remove typescript classes Emit types instead of classes for JavaScript Feb 7, 2025
@davidjgoss davidjgoss force-pushed the remove-typescript-classes branch from 801e7d5 to 85c1f78 Compare February 7, 2025 14:07
# Conflicts:
#	CHANGELOG.md
#	javascript/package-lock.json
#	javascript/package.json
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (4ed7f02) to head (2def03c).
Report is 20 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #287   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines          200       200           
=========================================
  Hits           200       200           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidjgoss davidjgoss marked this pull request as ready for review February 7, 2025 14:22
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.

Proposal to remove JavaScript classes and just generate interfaces
2 participants