Commit graph

24 commits

Author SHA1 Message Date
u9g
3813d4de7d
Make ci clearer as to what version is being tested (#861)
* Make ci clearer as to what version is being tested

* Update ci.yml

* fix

* fix
2021-06-13 04:54:16 +02:00
Romain Beaumont
8e5264dc52 fix lint for new standard version 2019-08-03 23:29:14 +00:00
Romain Beaumont
0bd2e559bd
run standard 1.12 --fix 2018-09-24 22:08:11 +02:00
Romain Beaumont
e3e0a26dfe
change codestyle to standard + enforce it with circle ci 2018-05-13 22:50:16 +02:00
Romain Beaumont
79f82afb91
var -> const/let in examples and tests 2017-07-13 14:03:52 +02:00
Romain Beaumont
20dd0710f2 parallel circle ci testing of clientTest.js (#373) (#449)
parallel testing with circle ci, solve #373
2017-05-10 02:49:13 +02:00
Romain Beaumont
14ec6077cd using minecraftVersion everywhere 2016-02-19 01:02:57 +01:00
Romain Beaumont
b2b53c9343 a few small changes to make the code better 2015-11-30 22:19:56 +01:00
Romain Beaumont
f45c6dff49 use protodef:
* move general datatypes to protodef along with their tests
* move states to states.js file
* use one protodef serializer by state and direction instead of one big serializer for everything (same thing for the deserializer)
* define a packet as a protodef type using a switch and a container, and adding each minecraft packet as a type (packet_ + name)
* use mapper type from protodef to convert id to name in packet definition
* use general string type : pstring
* divide by 10 the number of iteration in the benchmark to get back to a reasonable test execution time
2015-11-08 23:29:51 +01:00
Romain Beaumont
449c8dee00 increase mocha timeout to 20s for benchmarks 2015-09-30 18:16:41 +02:00
Romain Beaumont
1d5f55235e use mocha for benchmark (allow better mocha grepping + it's cleaner) 2015-09-30 18:11:57 +02:00
Romain Beaumont
917b6adda1 enable cross version with an option in createClient and createServer :
* put parsePacketData in deserializer and createPacketBuffer in serializer
* remove packets from the index and expose readPacket instead
* load packets when needed in various files
* make tests test every supported version
static cross version of #234, fix #65, fix #240
2015-09-29 22:44:28 +02:00
roblabla
b1441098f9 Only allow writing by packetName. Refactor whole internals to use packetNames 2015-09-20 00:55:29 +02:00
Romain Beaumont
498d9f2c81 make benchmark.js independent of ids (related with #232) 2015-09-12 21:49:17 +02:00
Romain Beaumont
1a9e08cbd8 move createPacketBuffer and parsePacketData functions to serializer, also move protocol's exports to serializer 2015-05-23 03:31:47 +02:00
roblabla
ced091b2b2 Rewrite of the internal serializer using transform streams 2015-05-22 17:26:48 +00:00
Romain Beaumont
1dec8ccffd fix indentation and a few other stuff webstorm felt like fixing (for example if (condition) -> if(condition) since that was the more frequent style in node-minecraft-protocol) 2015-05-14 22:08:49 +02:00
Will Franzen
06cd5f5441 Fix require statements 2015-03-06 23:00:32 -06:00
roblabla
63fe55e4ed Fix test and benchmark on node 0.10 2015-03-06 23:37:47 +00:00
roblabla
c27a40cde2 Fix benchmark 2015-03-06 23:10:05 +00:00
roblabla
875d10ed0b Protocol 1.7 support, Yggdrasil login support, new Client State API 2014-01-06 00:57:18 +01:00
Matt Bell
2b594399ea Reduced benchmark execution time 2014-01-02 16:58:09 -08:00
darthfett
9b274df54a Cleanup: terminate all statements with semicolons, remove unnecessary semicolons, remove unused variables, add hasOwnProperty checks in 'for x in y' loops. 2013-11-19 16:55:30 -07:00
Matt Bell
169fa1c986 Added benchmark script 2013-03-15 23:13:05 -07:00