Erik Arvidsson
6178251012
Update to Flow 0.30.0 ( #2337 )
...
This requires all parameterized types to have type params. Fortunately
one can use `T<any>` which has the same behavior as the old `T` syntax.
We should tighten the types further after this but this unblocks us.
Fixes #2301
2016-08-11 11:27:41 -07:00
Rafael Weinstein
890433e864
Reland js type cache ( #2032 )
...
Reland js type cache (#2032 )
2016-07-13 15:23:23 -07:00
Erik Arvidsson
f2a83346ca
JS: Change hash function to sha512
...
For browser support we use npm amscrypto.js-sha512. For node we use its
builtin crypto module.
2016-07-12 13:59:09 -07:00
Rafael Weinstein
8a5f3853b7
Revert "Js type cache ( #2011 )"
...
This reverts commit 4e10ae63f4 .
2016-07-11 18:36:17 -07:00
Rafael Weinstein
4e10ae63f4
Js type cache ( #2011 )
...
Js type cache
2016-07-11 16:45:35 -07:00
Rafael Weinstein
ee5c0f3a72
MakeStructType and NewStructWithType now takes slices rather than maps ( #1945 )
...
NewStructType and NewStructWithType now takes slices rather than maps
2016-07-07 16:36:48 -07:00
Aaron Boodman
1d752e3101
Update license: Noms will be copyright Attic Labs. ( #1976 )
2016-07-05 22:07:42 -07:00
Erik Arvidsson
5571e0bc6f
Add commas to HRS of struct type ( #1759 )
...
This makes the struct more consistent with the rest.
2016-06-08 14:54:47 -07:00
Erik Arvidsson
abbd0cfb1e
JS: Make Structs use arrays ( #1743 )
...
...instead of objects as maps.
Fixes #1715
2016-06-07 15:59:27 -07:00
Erik Arvidsson
f20c6465b6
Flow comment first ( #1724 )
2016-06-03 14:35:21 -07:00
Erik Arvidsson
1b6ef9ceee
Rename Parent<> to Cycle<> ( #1718 )
2016-06-03 10:31:27 -07:00
Rafael Weinstein
143d570960
Binary encoding ( #1679 )
...
Noms format is now binary encoded.
2016-05-31 16:13:51 -07:00
Aaron Boodman
e5f288b752
Licensify js/
2016-05-30 14:32:28 -07:00
Erik Arvidsson
bcd8d7e172
Add union types ( #1417 )
...
A union type is a compound type with 0 or more types.
Its noms serialization is UnionKind, <number-of-types>, T0, ..., TN
Its HRS is T0 | T1 | ... | TN
Towards #1311
2016-05-05 15:43:11 -07:00
Erik Arvidsson
3032c76a39
Use a map for the struct fields
...
Fixes #1368
2016-05-02 15:35:27 -07:00
Erik Arvidsson
d4d6de6a76
Rename Field t to type ( #1366 )
...
* Rename Field t to type
* Fix clients/csv too
2016-04-29 13:47:52 -07:00
Erik Arvidsson
719094ef37
Parameterize the Type type ( #1362 )
...
The Type type is now parameterized with a `T: TypeDesc`. This means
that we almost always know the type of `t.desc` and we can remove
invariants.
2016-04-29 11:24:51 -07:00
Erik Arvidsson
6730227136
Rename BackRef to Parent ( #1357 )
...
Fixes #1340
2016-04-29 09:50:35 -07:00
Erik Arvidsson
cfc51e2e9d
Remove optional fields ( #1354 )
...
Remove optional fields
Fixes #1310
2016-04-28 17:12:15 -07:00
Erik Arvidsson
fa742aecb1
Remove unions from structs ( #1345 )
...
Fixes #1344
2016-04-28 11:13:59 -07:00
Erik Arvidsson
3ff6ee6add
Inline struct type declaration into chunk ( #1324 )
...
Struct type definition is now inlined into the chunk. To break
cycles we use back references.
- Removes unresolved type refs
- Removes packages
Fixes #1164
Fixes #1165
2016-04-27 20:39:51 -07:00