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

Add Typescript Support #45

Merged
merged 15 commits into from
Jun 11, 2022
Merged

Add Typescript Support #45

merged 15 commits into from
Jun 11, 2022

Conversation

M-Scott-Lassiter
Copy link
Owner

@M-Scott-Lassiter M-Scott-Lassiter commented Jun 11, 2022

Proposed Changes

Added Typescript definitions and improve the CI/CD pipeline.

Pull Request Checklist

Please check if your PR fulfills the following requirements:

  • I have read the CONTRIBUTING guidelines
  • My commits follow the appropriate guidance
  • I certify that I have the appropriate permissions to add these changes to the repository
  • An issue is open for the changes proposed
  • I have added/updated tests for new code changes (if applicable)
  • Documentation has been added/updated (if applicable)
  • I built (npm run build) locally and pushed all changes

Issues Addressed: #43

Other Information

Switched build configuration over to @m-scott-lassiter/semantic-release-github-npm-config

M-Scott-Lassiter and others added 15 commits May 20, 2022 13:04
Prettier and ESLint were both trying to drive formatting for CHANGELOG.md that didn't actually
result in a end difference for Github's markdown generator. It was causing unnecessary commits. As
CHANGELOG.md is auto-generated, linting it is not necessary.

Resolves: 44
These were superfluous and getting ignored anyway. Conversations about details and problems on these
should be had in the open, not behind email.
See @m-scott-lassiter/semantic-release-github-npm-config
The new semantic-release config with this change uses a beta branch for pre-releases.
This is a beta test addressing issue #43 for testing. It adds typescript bindings in a index.d.ts
file.
## [1.6.0-beta.1](v1.5.2...v1.6.0-beta.1) (2022-05-20)

### 🏗️ Build Changes

* change the semantic-release configuration to a shared config ([c2a19fa](c2a19fa))
* ignore CHANGELOG.md from linting and formatting ([2e3ca94](2e3ca94))

### 🎁 Feature Changes

* add typescript bindings to the encoder ([e1cd754](e1cd754)), closes [#43](#43)
Missed this when building the new package. Refer to issue #43 for details.
## [1.6.0-beta.2](v1.6.0-beta.1...v1.6.0-beta.2) (2022-05-20)

### 🐞 Bug Fixes

* add typescript definition file to "files" key ([009460c](009460c)), closes [#43](#43)
Updates @m-scott-lassiter/semantic-release-github-npm-config to version 2.0.0 which causes API types
to trigger patches. Also upgrades the commitizen script with a more customized scope list to assist
other developers.
This might fix the problem in #43. I added @ts-check back in, changed the index.d.ts to 'declare
class' instead of 'export class', and I am not getting any errors in VS Code anymore with the built
in Typescript checker. However, I am not actually running Typescript, so I do not know if this will
solve the problem once and for all or not. Additionally, I indentified some issues in the API
documentation and have improved those.
## [1.6.0-beta.3](v1.6.0-beta.2...v1.6.0-beta.3) (2022-06-04)

### 🏗️ Build Changes

* update commitizen configuration for API ([f40be7f](f40be7f))

### 🐞 Bug Fixes

* correct problems with Typescript definitions and JSDoc comments ([b891650](b891650)), closes [#43](#43)
This version has reached end of life and will no longer get supported in the test scripts.
@M-Scott-Lassiter M-Scott-Lassiter self-assigned this Jun 11, 2022
@codecov
Copy link

codecov bot commented Jun 11, 2022

Codecov Report

Merging #45 (b3c253f) into main (e2b1e45) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #45   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           94        95    +1     
  Branches        28        28           
=========================================
+ Hits            94        95    +1     
Impacted Files Coverage Δ
index.js 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5f3c9c...b3c253f. Read the comment docs.

@M-Scott-Lassiter M-Scott-Lassiter changed the title Beta Add Typescript Support Jun 11, 2022
@M-Scott-Lassiter M-Scott-Lassiter merged commit 5633ecd into main Jun 11, 2022
@M-Scott-Lassiter
Copy link
Owner Author

🎉 This PR is included in version 1.6.0 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants