Skip to content

Conversation

scottinet
Copy link
Contributor

@scottinet scottinet commented Oct 27, 2020

Description

Fix #549

Update dependencies, and make this SDK compatible with Typescript 4. Errors were all due to WebSocket properties shadowing parent classes getters.

Other changes

  • Upgrade all dependencies
  • Upgrade WebPack 4=>5 + configuration upgrade
  • Deactivate the no-shadow eslint rule, and replace it with the dedicated TS one (the vanilla JS "no-shadow" rule doesn't work w/ ts code)
  • Relax eslint rules for snippets a little, to allow our most recent coding styles in documentation snippets

@scottinet scottinet self-assigned this Oct 27, 2020
@scottinet scottinet changed the title [ts] ts4 compatibility fixes Upgrade to typescript 4 compatible code Oct 27, 2020
@codecov
Copy link

codecov bot commented Oct 27, 2020

Codecov Report

Merging #552 into 7-dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            7-dev     #552   +/-   ##
=======================================
  Coverage   88.39%   88.39%           
=======================================
  Files          32       32           
  Lines        1448     1448           
  Branches      252      252           
=======================================
  Hits         1280     1280           
  Misses        119      119           
  Partials       49       49           
Impacted Files Coverage Δ
src/protocols/WebSocket.ts 90.76% <ø> (ø)
src/protocols/abstract/Base.ts 91.66% <ø> (ø)

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 40cae55...049ef82. Read the comment docs.

@scottinet scottinet merged commit 0d82e6c into 7-dev Oct 28, 2020
@scottinet scottinet deleted the ts4-support branch October 28, 2020 15:20
@scottinet scottinet mentioned this pull request Oct 28, 2020
scottinet added a commit that referenced this pull request Oct 28, 2020
# [7.4.1](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.4.1) (2020-10-28)


#### Enhancements

- [ [#552](#552) ] Upgrade to typescript 4 compatible code   ([scottinet](https://github.com/scottinet))
- [ [#551](#551) ] Export interfaces   ([Aschen](https://github.com/Aschen))

#### Others

- [ [#548](#548) ] [doc] Add a disclaimer about Expo in getting started React Native   ([Njuelle](https://github.com/Njuelle))
- [ [#547](#547) ] Stick `realtime:unsubscribe` behavior to documentation   ([Yoann-Abbes](https://github.com/Yoann-Abbes))
---
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.

4 participants