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

feat!: add useJavascriptReservedKeywords option for TS #1727

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

jonaslagoni
Copy link
Member

@jonaslagoni jonaslagoni commented Jan 5, 2024

Description

Right now by default, we include JS keywords when checking for whether TS enum keys, properties, or model names can be a certain word. However, in most cases, people probably don't transpile their models into JS and so do not need that functionality.

Introducing this option useJavascriptReservedKeywords makes it optional for people to include the list or not.

Related Issue

Fixes #1206
Fixes #1053

Copy link

netlify bot commented Jan 5, 2024

Deploy Preview for modelina canceled.

Name Link
🔨 Latest commit bede4e5
🔍 Latest deploy log https://app.netlify.com/sites/modelina/deploys/65a05d4b7936df00080e9921

Copy link

sonarcloud bot commented Jan 11, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@jonaslagoni jonaslagoni merged commit 384a16c into asyncapi:next Jan 12, 2024
16 checks passed
@jonaslagoni jonaslagoni deleted the fix_js_reserved_keyword branch January 12, 2024 00:08
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 3.0.0-next.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

jonaslagoni added a commit that referenced this pull request Feb 1, 2024
* feat!: convert to use multi parser (#1587)
* feat!: adds support for duration in java (#1604)
* feat: enable AsyncAPI v3 (#1600)
* fix!: add csharp support for DateTime, TimeSpan, Guid (#1612)
* feat!: adds extend in common, meta, and constrained models (#1613)
* feat!: adds inheritance with interfaces for java (#1593)
* chore: remove duplicate version entry for AsyncAPI processor (#1609)
* feat!: render python union in pydantic in the pre 3.10 way (#1626)
* feat: add file path as input (#1601)
* feat!: add options as parameter to constraints (#1667)
* fix: (un)marshalling tuple and dictionary unwrapping for Typescript (#1717)
* fix: jsonbinpack preset and runtime tests (#1718)
* chore: fix linting
* chore: remove unused directory
* feat!: add useJavascriptReservedKeywords option for TS (#1727)
* feat: enable raw properties for interface (#1729)
* fix: newtonsoft could not handle enum values (#1731)
* chore: update Java runtime tests (#1739)
* fix: edge case where references was incorrect handled for JSON Schema (#1754)
* fix: recursion bug for get nearest dependencies (#1757)

---------

Co-authored-by: Kenneth Aasan <[email protected]>
Co-authored-by: jano-petras <[email protected]>
Co-authored-by: Nilkanth Parmar <[email protected]>
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants