Ben Newman
76fb8a7897
Use truly empty Object.create(null) instead of {} in ddp-client.
2017-11-11 16:20:27 -05:00
Ben Newman
f2d42067b9
Use Object.keys instead of Object.entries.
...
It turns out we do not polyfill Object.entries, because that would require
requiring 'core-js/es7/object' in ecmascript-runtime-client/runtime.js.
Something to consider, but not strictly necessary right now.
https://github.com/meteor/meteor/pull/9338#discussion_r150306273
2017-11-11 16:07:08 -05:00
Ben Newman
24e07095d7
Use String#endsWith as well as #startsWith.
2017-11-11 16:01:42 -05:00
Sashko Stubailo
d16b928efb
Apply is confusing, we don't actually use this
2017-11-10 14:18:39 -08:00
Sashko Stubailo
83c774c486
Replace Array.prototype.slice.call with Array.from
2017-11-10 14:15:46 -08:00
Sashko Stubailo
8e4f4fb650
Use assign to avoid an extra object copy
2017-11-10 14:08:02 -08:00
Sashko Stubailo
470df87cef
Replace startsWith
2017-11-10 14:07:10 -08:00
Sashko Stubailo
0da59ee8c9
Switch to more concise require as suggested by Ben
2017-11-10 14:05:43 -08:00
Sashko Stubailo
f6bbe753a3
Remove LivedataTest! 🎉
2017-11-10 14:00:09 -08:00
Sashko Stubailo
46ddbe62d1
Add comments about weird imports
2017-11-10 09:40:15 -08:00
Sashko Stubailo
62a1e507f1
Remove the lazy function for methodId
...
Just generate it when we need it
2017-11-10 09:40:15 -08:00
Sashko Stubailo
d8c89e5070
Arrow function formatting
2017-11-10 09:40:14 -08:00
Sashko Stubailo
84a6310bbc
No more function statements except tests
2017-11-10 09:40:14 -08:00
Sashko Stubailo
bb1a50706a
Fix args and this for stuff that passes through to stream
2017-11-10 09:40:14 -08:00
Sashko Stubailo
78027030e7
Remove underscore from callbacks
2017-11-10 09:40:14 -08:00
Sashko Stubailo
af0ecc0aab
Fix undefined options
2017-11-10 09:40:14 -08:00
Sashko Stubailo
dadd4323e4
No more dynamic method naming
2017-11-10 09:40:14 -08:00
Sashko Stubailo
7b69fa7f48
Add brackets to if/else chain
2017-11-10 09:40:14 -08:00
Sashko Stubailo
90f95641cf
Move onReset into a method
2017-11-10 09:40:14 -08:00
Sashko Stubailo
9095c7e2d6
Move onMessage into method
2017-11-10 09:40:14 -08:00
Sashko Stubailo
34d78acf21
Replace _.isFunction
2017-11-10 09:40:14 -08:00
Sashko Stubailo
17ef5c2955
Make sure all imports have the .js extension
2017-11-10 09:40:14 -08:00
Sashko Stubailo
8a9875cf97
Remove underscore from stream_client_nodejs
2017-11-10 09:40:14 -08:00
Sashko Stubailo
437b7808be
Replace _.all with Array#every
2017-11-10 09:40:14 -08:00
Sashko Stubailo
8788b2d793
Get rid of self=this in method invoker
2017-11-10 09:40:14 -08:00
Sashko Stubailo
0ac733f5ec
Fix an oddly broken line
2017-11-10 09:40:14 -08:00
Sashko Stubailo
4966bc537b
Replace function statements with arrow functions or declarations
2017-11-10 09:40:14 -08:00
Sashko Stubailo
caf91e7932
Add back import that isn't strictly required
2017-11-10 09:40:14 -08:00
Sashko Stubailo
0dd710e580
Replace _.extend with spread
2017-11-10 09:40:14 -08:00
Sashko Stubailo
d6f0fdfb35
Get ClientStream off of LivedataTest
2017-11-10 09:40:14 -08:00
Sashko Stubailo
8bbfd531c1
Make Connection a real class
2017-11-10 09:40:14 -08:00
Sashko Stubailo
2633d962ca
Factor out method invoker
2017-11-10 09:40:14 -08:00
Sashko Stubailo
45928b2cb2
No more self=this
2017-11-10 09:40:14 -08:00
Sashko Stubailo
8fb63d1b86
Clean up urlHelpers
2017-11-10 09:40:14 -08:00
Sashko Stubailo
6a0b94340c
Remove underscore and self=this from stream_client_common
2017-11-10 09:40:14 -08:00
Sashko Stubailo
5da802d642
Remove underscore from one file
2017-11-10 09:40:14 -08:00
Sashko Stubailo
88847faf27
Remove all self=this and convert callbacks to arrow functions
2017-11-10 09:40:14 -08:00
Sashko Stubailo
3739ec98cd
Use classes and inheritance instead of extending prototype
2017-11-10 09:40:14 -08:00
Sashko Stubailo
a6ff818fdc
Reformat package.js, and remove some LivedataTest
2017-11-10 09:40:14 -08:00
Sashko Stubailo
775279d1f5
Refactor some small stuff
2017-11-10 09:40:14 -08:00
Jesse Rosenberger
70ffce52fc
Merge pull request #9340 from meteor/abernix/remove-windows-installer
...
Remove the source of the deprecated Windows installer.
2017-11-09 23:33:09 +02:00
Jesse Rosenberger
854076c817
Remove the source of the deprecated Windows installer.
...
This code had been used to compile the previous generation of
the Windows installer, `InstallMeteor.exe`, however it has been
replaced with the `meteor` Chocolatey package.
Refs: https://github.com/meteor/meteor-chocolatey-installer .
2017-11-09 23:13:29 +02:00
Sashko Stubailo
0749a1890a
Make ddp-client more aligned with code style ( #9337 )
...
- single quotes
- 80 char line width
2017-11-09 15:10:19 -05:00
Ben Newman
3690d7a327
Merge pull request #9324 from meteor/modernize-ddp
...
Convert ddp-client to use only api.mainModule for client and server.
2017-11-09 11:54:34 -05:00
Sashko Stubailo
0dcc4f18e1
Use export from instead of import then export
2017-11-09 08:23:34 -08:00
Sashko Stubailo
5bc54cabce
Organize files into directories: client, common, server, test
2017-11-09 08:22:45 -08:00
Sashko Stubailo
2f099b476e
Get rid of random_stream
2017-11-09 08:22:45 -08:00
Sashko Stubailo
becfd8939b
Refactor stream_client_common to work more like a mixin
2017-11-09 08:22:45 -08:00
Sashko Stubailo
36d8926b99
Remove livedata_common entirely
2017-11-09 08:22:45 -08:00
Sashko Stubailo
266626f897
Add missing import
2017-11-09 08:22:45 -08:00