Commit Graph

3679 Commits

Author SHA1 Message Date
Jérémie Astori
b943b12cd1
Use Yarn in the PR-test script 2018-02-22 00:50:27 -05:00
Jérémie Astori
f8c894d7e1
Merge pull request #2082 from thelounge/xpaw/rm-isRegistered
Remove isRegistered
2018-02-22 00:45:22 -05:00
Jérémie Astori
fa4331bcd9
Limit CTCP requests to prevent easy spamming 2018-02-22 00:42:33 -05:00
Jérémie Astori
e03694b49c
Let user know someone is making a CTCP request against their nick 2018-02-22 00:42:33 -05:00
Jérémie Astori
da0ab54292
Merge pull request #2091 from thelounge/rename-lounge-repo
Update all links to thelounge repository
2018-02-22 00:19:32 -05:00
Pavel Djundik
59ec07be87
Update all links to thelounge repository 2018-02-21 22:47:52 -05:00
Jérémie Astori
7e8ceaeda4
Merge pull request #2092 from thelounge/greenkeeper/stylelint-9.1.1
Update stylelint to the latest version 🚀
2018-02-21 21:44:19 -05:00
greenkeeperio-bot
a3a5ce9aa4 chore(package): update lockfile
https://npm.im/greenkeeper-lockfile
2018-02-21 22:49:21 +00:00
greenkeeper[bot]
a121ada239 chore(package): update stylelint to version 9.1.1 2018-02-21 22:44:54 +00:00
Pavel Djundik
84e524c635 Change default nick 2018-02-21 19:34:33 +02:00
Pavel Djundik
906e79f39b Allow generating random numbers in nick on page load 2018-02-21 19:34:33 +02:00
Pavel Djundik
e957a52e43
Merge pull request #1864 from thelounge/yamanickill/isop
Change isOpInChannel to allow multiple different user roles
2018-02-21 19:32:11 +02:00
Al McKinlay
c09f06fccc Change isOpInChannel to allow multiple different user roles 2018-02-21 15:05:02 +00:00
Jérémie Astori
863e9b0b48
Merge pull request #2088 from thelounge/xpaw/harden-server-events
Ignore events on the server if incorrect data is supplied
2018-02-21 09:57:19 -05:00
Jérémie Astori
5bc3ef3ed8
Merge pull request #1918 from williamboman/fix/send-accept-language-in-link-previews
relay client's preferred language in link preview requests
2018-02-21 09:54:08 -05:00
Jérémie Astori
cf3d1e928d
Merge pull request #2089 from thelounge/greenkeeper/stylelint-9.1.0
Update stylelint to the latest version 🚀
2018-02-21 09:38:26 -05:00
Pavel Djundik
dfba84d811
Merge pull request #2081 from thelounge/xpaw/secure-localhost
Consider localhost connections secure
2018-02-21 14:00:56 +02:00
greenkeeperio-bot
b9df9d6981 chore(package): update lockfile
https://npm.im/greenkeeper-lockfile
2018-02-21 11:29:40 +00:00
greenkeeper[bot]
ab15fef282 chore(package): update stylelint to version 9.1.0 2018-02-21 11:22:07 +00:00
Pavel Djundik
b501d648e3 Ignore events on the server if incorrect data is supplied 2018-02-21 13:17:56 +02:00
William Boman
acb6179b30 relay client's preferred language in link preview requests
Closes #1440.
2018-02-21 10:35:33 +01:00
Jérémie Astori
f6c76ff9bd
Merge pull request #2087 from thelounge/astorije/npmignore-webpack-test
Do not publish Webpack config for test env
2018-02-21 02:50:29 -05:00
Jérémie Astori
25c6cb4f6f
Merge pull request #2086 from thelounge/astorije/node-readme
Update Node version required in README
2018-02-21 02:50:11 -05:00
Jérémie Astori
599568a428
Merge pull request #2085 from thelounge/astorije/readme-nitpick
Fix badge links in README going over the images
2018-02-21 02:47:34 -05:00
Jérémie Astori
75dda78b9c
Do not publish Webpack config for test env 2018-02-21 01:19:16 -05:00
Jérémie Astori
4fe946d791
Update Node version required in README 2018-02-21 00:57:05 -05:00
Jérémie Astori
8cfc7aae09
3.0.0-pre.1 2018-02-21 00:12:51 -05:00
Jérémie Astori
32d98c327d
Add changelog entry for v3.0.0-pre.1 2018-02-21 00:12:03 -05:00
Jérémie Astori
8d8ab049cd
Fix badge links in README going over the images 2018-02-20 23:56:02 -05:00
Jérémie Astori
0602a9495a
Merge pull request #2036 from thelounge/xpaw/prefetch-errors
Report server errors when preview fetch fails
2018-02-20 22:21:39 -05:00
Jérémie Astori
ddfd942e66
Merge pull request #2084 from thelounge/greenkeeper/eslint-4.18.1
Update eslint to the latest version 🚀
2018-02-20 19:50:27 -05:00
greenkeeperio-bot
70a5fb99d4 chore(package): update lockfile
https://npm.im/greenkeeper-lockfile
2018-02-20 23:26:23 +00:00
greenkeeper[bot]
901b0eff7d chore(package): update eslint to version 4.18.1 2018-02-20 23:24:04 +00:00
Pavel Djundik
f9ca608ad5
Merge pull request #1726 from thelounge/astorije/mocha-webpack
Instrument client code before running tests
2018-02-20 15:38:56 +02:00
Jérémie Astori
9c4ea85041 Instrument client code before running tests
Despite being a bit gross to look at, this brings a few advantages:

- Tests are now closer to what actually runs, so more likely to find broken stuff.
- We can start using things that were so far Webpack-only or browser-only, like ES6 imports, loading Handlebars templates, etc.
- We open ourselves to browser testing (there is some work to do, but that would be a necessary step).
- We improve the client/server separation, by making it possible to run them independently

I do some extra steps around coverage: now we have 2 reports (client + server), so I have an extra step to combine them (the `nyc report` part). This is  strictly to keep feature parity (the coverage report of this code is effectively the same as before), but in the near future, we might want to keep both reports separate, for example to continue separating client/server. Another reason would be to use something like Codecov, which I believe has the ability to have multiple reports. This is down the road though, our coverage is not good enough to make hosting them somewhere be useful (I think).

A few extras with this commit:

- Coverage summary is displayed when tests are run (this is not slowing down tests)
- Tests check for leaks (see https://mochajs.org/#--check-leaks)
- Tests now output with the `dot` reporter. This is nice as `npm test` runs in parallel, the whole output holds in a few lines instead of spanning over multiple screens.
2018-02-20 15:32:30 +02:00
Pavel Djundik
b10962f13f Remove isRegistered 2018-02-20 13:24:46 +02:00
Pavel Djundik
f8e53d5f72
Merge pull request #1987 from thelounge/yarn
Switch from npm to yarn
2018-02-20 12:27:01 +02:00
Pavel Djundik
37c61e2413 Report server errors when preview fetch fails 2018-02-20 11:33:42 +02:00
Pavel Djundik
2bcb9bcca1 Update readme to suggest using yarn 2018-02-20 11:28:14 +02:00
Pavel Djundik
913e88185e Change (un)install commands to use locally installed yarn 2018-02-20 11:28:14 +02:00
Pavel Djundik
f646fbbd4f Add yarn.lock, update CI services to run yarn 2018-02-20 11:28:14 +02:00
Pavel Djundik
dc6252d3f6 Consider localhost connections secure 2018-02-20 10:36:19 +02:00
Pavel Djundik
1ce2792fc4
Merge pull request #1920 from thelounge/xpaw/more-eslint
Enforce padding-line-between-statements
2018-02-20 09:41:40 +02:00
Jérémie Astori
feb5071786
Merge pull request #2080 from thelounge/astorije/travis-dist-tag
Deal with npm's `dist-tag` at Travis deploy time
2018-02-20 02:36:30 -05:00
Jérémie Astori
477e2f9cd1
Merge pull request #2079 from thelounge/xpaw/fix-master-v2
Add titles to all windows
2018-02-20 02:36:09 -05:00
Pavel Djundik
c733e72e7a Auto-fix code for padding-line-between-statements rule 2018-02-20 09:28:04 +02:00
Pavel Djundik
1453e262d1 Enforce padding-line-between-statements in eslint 2018-02-20 09:27:32 +02:00
Pavel Djundik
a2195c15e4 Add titles to all windows 2018-02-20 09:19:20 +02:00
Jérémie Astori
4e63ef9764
After deploying a stable release, clean up the next tag 2018-02-20 00:59:47 -05:00
Jérémie Astori
288e8148fd
Tag npm releases with latest or next depending on stable/pre-release 2018-02-20 00:58:43 -05:00