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: convert to typescript #53

Merged

Conversation

achingbrain
Copy link
Collaborator

@achingbrain achingbrain commented Dec 13, 2021

  • Converts module to typescript
  • Upgrades all deps
  • Makes sure we're actually running the CI jobs we think we are

Also fixes a bug with the cache TTL, previously we were doing:

const ttl = Math.min(response.Answer.map(a => a.TTL))

this._cache.set(..., { ttl })

which returns NaN. Changes it to:

const ttl = Math.min(...response.Answer.map(a => a.TTL))

this._cache.set(..., { ttl })

which returns a number.

BREAKING CHANGE: ESM only publishing

* Converts module to typescript
* Upgrades all deps
* Makes sure we're actually running the CI jobs we think we are

Also fixes a bug with the cache TTL, previously we were doing:

```js
Math.min(response.Answer.map(a => a.TTL))
```

which returns `NaN`.  Changes it to:

```js
Math.min(...response.Answer.map(a => a.TTL))
```

which returns a number.

BREAKING CHANGE: ESM only publishing
Copy link
Owner

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ❤️
thanks @achingbrain

@vasco-santos vasco-santos merged commit 4eac9f6 into vasco-santos:main Dec 14, 2021
@achingbrain achingbrain deleted the feat/convert-to-typescript branch December 14, 2021 08:44
@vasco-santos
Copy link
Owner

Shipped 2.0.0

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.

2 participants