Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Schildt
758cc875b4 fix: update npm dependencies (#64)
- Update npm dependencies to fix 1 moderate severity vulnerability
  - Path: `next > webpack > terser-webpack-plugin > serialize-javascript`

Details from the command line:

```
❯ npm audit

=== npm audit security report ===

# Run `npm update terser-webpack-plugin --depth 3` to resolve 1 vulnerability

│ Moderate      │ Cross-Site Scripting
│ Package       │ serialize-javascript
│ Dependency of │ next│
│ Path          │ next > webpack > terser-webpack-plugin >
│               │ serialize-javascript
│ More info     │ https://npmjs.com/advisories/1426

found 1 moderate severity vulnerability in 11551 scanned packages
  run `npm audit fix` to fix 1 of them.

```
2020-01-23 19:30:13 +02:00
Olavi Haapala
f4474523ad Chore/convert to typescript (#60)
* Convert to using TypeScript

Next.js v.9 allows converting an existing project to TS by simply renaming the files as TS files

* Fix type errors: Type 'string' is not assignable to type 'number'.

* Add mention about missing typings for javascript-time-ago

* Add GA_INITIALIZED to window

* Fix type error in feed transformers

* Model MembershipInfoForm state and props with TS

* Silence the typescript warning in MembershipInfoForm

* Add threshold to Fader props

* Fix Warning: Each child in a list should have a unique "key" prop.

Sponsors don't have ids – name is probably unique and can be used as a key

* Allow key as prop for SponsorLink

* Add type of the props for SponsorLink
2019-11-07 07:28:02 +02:00
Aarni Koskela
dcf26deb0f Upgrade dependencies, etc. (#55)
* Run prettify

* Upgrade dependencies and switch out some libraries:

* timeago (freshly jquery dependent) -> ReactTimeAgo
* next-ga -> react-ga and custom plumbing

* Move static/ to public/static/

As per https://github.com/zeit/next.js/blob/master/errors/static-dir-deprecated.md

* Fix cons->icons typo

* Import only what's necessary from lodash (223 -> 180 kb)

* Asyncify MembershipInfoForm
2019-10-30 11:05:08 -07:00
Aarni Koskela
af08abfcb9 Enable eslint-plugin-jsx-a11y 2019-10-30 09:46:39 +02:00
Aarni Koskela
1a57117749 Regenerate lockfile; bump Axios to non-vulnerable version 2019-09-23 16:50:56 +03:00
Riku Rouvila
bc48b5eff3 update vulnerable packages 2018-11-26 22:56:27 +02:00