548 Commits

Author SHA1 Message Date
0c867e916e Rename v to validate 2019-08-27 20:34:05 +07:00
9262cb636e Use getMetadata instead of getOwnMetadata 2019-08-27 20:33:21 +07:00
c7ab4fe387 Add ability to validate context via @ensure 2019-08-27 16:17:05 +07:00
22f0b15e3a Add debounce.cancel, cancel session cleanup 2019-08-27 14:54:47 +07:00
2256fbc1e8 Fix SessionStore concurrency in tests by debouncing fn 2019-08-26 20:13:35 +07:00
803bbfa0fe Add debounce to tasq 2019-08-26 20:00:48 +07:00
359c6afd08 Add test for doInNewTransaction (mysql) 2019-08-26 19:25:54 +07:00
76bf7d8d47 Add transactionId to SqlLogger 2019-08-26 19:08:35 +07:00
02d072a361 Add TransactionManager.doInNewTransaction 2019-08-26 19:07:21 +07:00
67ae8dac57 Replace unnecessary DB with IDatabase 2019-08-26 18:53:52 +07:00
291d05e2be Expose bootstrap in test.ts 2019-08-26 18:46:06 +07:00
772c3f6682 Use real cls-hooked in tests instead of NamespaceMock
https://github.com/Jeff-Lewis/cls-hooked/issues/17#issuecomment-510168720

Note: uses undocumented methods ns.enter(context) and ns.exit(context)
2019-08-26 11:14:11 +07:00
e2c8fca29b TODO: fix deadlock caused by SessionStore#cleanup 2019-08-26 09:10:27 +07:00
d8ab2decef Fix correlation id for tests 2019-08-25 23:37:27 +07:00
040af18765 Use process.env.JEST_WORKER_ID when creating username 2019-08-25 23:08:16 +07:00
1762dad4d1 Add ability to run @rondo/server tests in parallel 2019-08-25 23:07:47 +07:00
1e53f55cfa Check if date is valid before calling toISOString() 2019-08-25 22:21:34 +07:00
91ecdbba10 Move js-yaml to packages/config 2019-08-25 20:46:47 +07:00
1bbc3ed97d Extract ConfigReader to @rondo.dev/config pkg 2019-08-25 20:43:09 +07:00
ba45deda4f Rename LoggerFactory.createFromEnv to LoggerFactory.init 2019-08-25 20:22:55 +07:00
9aaf8b62a9 Add @rondo.dev/logger, remove winston 2019-08-25 14:12:24 +07:00
dffad844ad Rename scope @rondo to @rondo.dev 2019-08-25 11:33:06 +07:00
6497bd42ca Rename rondo newlib cmd to rondo add 2019-08-25 11:28:25 +07:00
ea5872d7c0 Add ability to specify command description to argparse 2019-08-25 11:25:40 +07:00
dfed2d8445 Add .envrc for projects/node/node_modules/.bin 2019-08-25 11:19:15 +07:00
79c6d1a608 Refactor scripts, add ability to load external scripts 2019-08-18 09:57:47 +07:00
b807e84539 Parse only positional arguments after the first is encountered 2019-08-18 08:36:00 +07:00
385555123a Add test for related source files 2019-08-14 17:05:55 +07:00
b122ff093a intergen: Do not add I-prefix to interfaces
Renaming of existing types turned out to be too complicated because the
code depends on checker.typeToString, and there is no way that I know of
that would allow renaming of an existing type.
2019-08-14 15:43:59 +07:00
25593dd994 Rename typecheck.ts to intergen.ts 2019-08-14 14:17:25 +07:00
cca888641a Add -i, -o flags to typecheck.ts 2019-08-14 14:16:41 +07:00
f8536b7446 Make flag error message more helpful when flag undefined 2019-08-14 14:16:19 +07:00
198cff3d35 Add better help for positional arguments 2019-08-14 10:23:08 +07:00
64d244fe91 Add better help for positional args 2019-08-14 10:17:06 +07:00
9fc4b064da Do not print help for positional arguments as options 2019-08-14 09:18:45 +07:00
c0b245067b Use path.relative when printing argparse cmd 2019-08-14 09:16:20 +07:00
f1865a0cc4 Add better --help support in argparse 2019-08-13 20:28:20 +07:00
7182684b4d argparse: Add support for string[], number of args 2019-08-13 19:37:15 +07:00
78f39517ce Take into account alias type parameters 2019-08-13 10:20:34 +07:00
0da43b0411 Fix iterating over non-filtered array 2019-08-13 10:01:23 +07:00
1289913d06 Add ability to generate interfaces 2019-08-13 09:23:28 +07:00
d06781277a Add ability to get definitions from types exported from modules 2019-08-13 09:12:28 +07:00
877024ec8c Add TODO comment 2019-08-13 08:10:41 +07:00
e3232882aa Add support for type aliases, restructure 2019-08-12 21:32:09 +07:00
d1072031d6 Filter out strings and numbers 2019-08-12 14:14:50 +07:00
3ba279a0ab Clean up comments 2019-08-12 12:34:37 +07:00
aa78b12e54 Add ability to filter out duplicate and generic parameter types
This should make it easier to generate interfaces and use the type
references.
2019-08-12 12:31:16 +07:00
3937778e06 Recursively expand type references 2019-08-12 11:29:12 +07:00
515232c458 Add getAllTypeParameters (not fully impl) 2019-08-12 09:50:24 +07:00
0ce76eb648 Add support for question tokens in typecheck.ts 2019-08-12 09:08:13 +07:00