marko-js / htmljs-parser

An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values
MIT License
135 stars 20 forks source link

feat: support parsing type parameters #141

Closed DylanPiercey closed 1 year ago

DylanPiercey commented 1 year ago

Description

Add support for type parameter/argument parsing.

Motivation and Context

This is improves on TypeScript support for the language.

Checklist:

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: a453b46ad63695975a07dc5e65cf663d4af7f0bb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------- | ----- | | htmljs-parser | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codecov[bot] commented 1 year ago

Codecov Report

Base: 92.13% // Head: 92.69% // Increases project coverage by +0.55% :tada:

Coverage data is based on head (a453b46) compared to base (9788f6e). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #141 +/- ## ========================================== + Coverage 92.13% 92.69% +0.55% ========================================== Files 26 26 Lines 801 835 +34 Branches 268 280 +12 ========================================== + Hits 738 774 +36 + Misses 48 46 -2 Partials 15 15 ``` | [Impacted Files](https://codecov.io/gh/marko-js/htmljs-parser/pull/141?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js) | Coverage Δ | | |---|---|---| | [src/states/TAG\_NAME.ts](https://codecov.io/gh/marko-js/htmljs-parser/pull/141/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js#diff-c3JjL3N0YXRlcy9UQUdfTkFNRS50cw==) | `100.00% <ø> (ø)` | | | [src/util/constants.ts](https://codecov.io/gh/marko-js/htmljs-parser/pull/141/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js#diff-c3JjL3V0aWwvY29uc3RhbnRzLnRz) | `100.00% <ø> (ø)` | | | [src/states/ATTRIBUTE.ts](https://codecov.io/gh/marko-js/htmljs-parser/pull/141/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js#diff-c3JjL3N0YXRlcy9BVFRSSUJVVEUudHM=) | `94.89% <100.00%> (+0.78%)` | :arrow_up: | | [src/states/OPEN\_TAG.ts](https://codecov.io/gh/marko-js/htmljs-parser/pull/141/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js#diff-c3JjL3N0YXRlcy9PUEVOX1RBRy50cw==) | `91.39% <100.00%> (+2.84%)` | :arrow_up: | | [src/util/util.ts](https://codecov.io/gh/marko-js/htmljs-parser/pull/141/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js#diff-c3JjL3V0aWwvdXRpbC50cw==) | `88.00% <100.00%> (+0.50%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=marko-js)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.