abalabahaha
8614d4b2a5
Less CPU on cache update
2016-03-15 22:04:52 -07:00
abalabahaha
e525e3b722
Copy paste fail
2016-03-15 22:04:52 -07:00
abalabahaha
42bedbeee4
Attempt to fix cache crash
2016-03-15 22:04:44 -07:00
abalabahaha
47ecc934f1
Attempting forceFetchUser callback
2016-02-20 18:33:36 -08:00
abalabahaha
9173ded903
Minor patching
2016-02-02 05:59:55 -08:00
abalabahaha
6f7bd987b8
Allow get/getAll to take a function only
2016-01-31 22:37:31 -08:00
abalabahaha
580f260933
Support for regex/function in get/getAll
2016-01-31 22:30:02 -08:00
meew0
634a5bd737
Fix the webdists, this fixes #170 .
...
Particular problems and how they were resolved:
- The `fs-extra` module, used exclusively by TokenCacher, didn't have a browser version. I rewrote TokenCacher to not use fs-extra (see fdd4cfc7cc )
- TokenCacher wouldn't work in the browser anyway due to lack of a file system. I made a shim (`Util/TokenCacher-shim.js`) that implements all TokenCacher functionality as null implementations, this causes `login` to always make a request.
- Compressed packets couldn't be parsed because neither node's Buffers nor zlib were working correctly. Initially I tried to make a browser-only parser class that parses compressed `Blob` packets, but this didn't work out, so I just disabled compression by default.
2016-01-30 14:17:27 +01:00
meew0
fdd4cfc7cc
Remove the TokenCacher fs-extra dependency, rewrite init code
2016-01-30 12:09:41 +01:00
Neto Becker
b3d5197013
removed ES6 function calls
2016-01-15 15:11:21 +01:00
Amish Shah
2000b62b36
fixed references to update items
2016-01-01 18:27:08 +00:00
Amish Shah
da990f544a
Token Cache bug fix and Rate Limiting
2015-12-16 18:32:01 +00:00
Amish Shah
8f8504810a
Privacy improvement over token caching
...
e-mail is no longer visible in caches
2015-12-14 18:28:27 +00:00
Amish Shah
8f5722d242
Token Caching now works
2015-12-14 18:06:03 +00:00
Amish Shah
a122f0994e
Stuff
2015-12-13 20:10:33 +00:00
Amish Shah
8eb4c47f79
Client now emits unknown and hidden some properties of Cache
...
Cache.discrim and Cache.discrimCache are now hidden from for..in
2015-12-12 17:32:20 +00:00
Amish Shah
cb58bc5414
Build changes & minor changes to Cache
2015-12-12 17:31:28 +00:00
qeled
a369ef2788
Improve Cache class performance
...
Use hashmap instead of array for caching by discriminator
Optimize `get` method by using `for` loop instead of `forEach`
and returning hashmap cache for queries by discriminator
2015-12-10 02:26:30 +03:00
Simon Schick
f9b3369187
Simplification
2015-12-08 17:49:35 +01:00
Amish Shah
ff7adf1cf7
basic speed improvement - eats more memory
2015-12-06 20:53:23 +00:00
Amish Shah
ac2398e47c
started working on bug fixes and test scripts
2015-12-04 20:30:11 +00:00
Simon Schick
faa744b1e3
Use import/export since we are using babel, removed unused imports
2015-11-28 17:57:22 +01:00
hydrabolt
4ba90f36fe
Added cache.random() and node engine to package.json
2015-11-21 18:35:51 +00:00
hydrabolt
10ea6a9336
Documented Cache
2015-11-20 16:36:32 +00:00
abalabahaha
224cca1e31
updateRole and deleteInvite
2015-11-19 09:40:15 -08:00
hydrabolt
6bca494ddc
Added msg.isMentioned
2015-11-18 17:24:15 +00:00
hydrabolt
fbd922e557
More things
2015-11-15 14:21:22 +00:00
abalabahaha
3e37c5d91f
Removed trailing spaces, added unbanMember and kickMember
2015-11-11 18:36:24 -08:00
hydrabolt
7175218ecf
Fixed server update listener
2015-11-01 14:09:00 +00:00
hydrabolt
4b4b7d6a47
Added updateMessage
2015-10-31 23:23:48 +00:00
hydrabolt
a333548c00
Added deleting messages
2015-10-31 23:12:14 +00:00
hydrabolt
6064888f21
More rewrites
2015-10-31 18:03:35 +00:00