Skip to content

v0.8.1

Compare
Choose a tag to compare
@rowanseymour rowanseymour released this 17 Apr 13:35
· 3904 commits to main since this release
7957e34

Changelog

7957e34 Merge pull request #249 from nyaruka/test_server_fix
967bd6b Fix migrating save actions with field=first_name
c6fa6ea Remove print in test
112e152 Merge branch 'master' into test_server_fix
f86603f Merge pull request #248 from nyaruka/str_equality
32adcb2 Rename to_json(...) -> json(...) and from_json(...) to parse_json(...)
aaba6c3 Create test server on different ports for different tests to avoid bind err
735daa5 Add more tests for equality checks on bools and dates
ef2ec87 Add couple more test cases for numerical equality checks
357080b Make = and != be string equality, and add NUMBER function to allow users to create normalized decimals
13c38f4 Merge pull request #246 from nyaruka/run_summary_tweak
102081c Merge pull request #247 from nyaruka/xtype_stringers
bbd55b6 Fix error message in types.Compare
11a091e Implement Equals on XNumber and XString
9b55c24 X types should implement String() so we can improve test output
c0fd611 Re-run docgen
c8d06f5 Use a flow reference on marshaled runs
899de2c Use a flow reference on marshaled runSummaries
5955626 Move runSummary into the runs package
28c5dc1 Merge pull request #244 from nyaruka/test_exp__migrations
8ef868d Merge branch 'master' into test_exp__migrations
a6437d7 Merge pull request #242 from nyaruka/funky_funcs
0ffc83e Check function exists in docgen
8eb81fd Final param to word_slice should be optional
1171860 Add support optional arg to round_up/round_down
b2887bf Add support for optional args to format_num
06563f8 Merge branch 'funky_funcs' into test_exp__migrations
b25e2e4 Use `` strings for expression migration tests so quotes don't have to be escaped
8091e05 Migrate expressions with date.yesterday / date.tomorrow
8d43fac Onlt include events generated on last step when docgening actions
d2406bc Try to evaluate migrated expressions and fix problems
5cc58ad Update docs
3794d5a Merge branch 'master' into funky_funcs
ceafdf8 Merge pull request #241 from nyaruka/rand
6629c2d Don't include function name in errors generated inside functions but have the caller prepend it
d971e4c Merge branch 'master' into rand
198dd3b Merge pull request #239 from nyaruka/word_slice_fix
a472a71 Make rand number generation overridable and deterministic in tests
27896ed Add more function wrappers
e314e8b Add rand_between function
ad7deb4 Fix docstring
3380695 word_slice should be zero-based
6d2e6e5 Merge pull request #236 from nyaruka/to_json
62c54c6 Add tests for to_json() calls on different xvalues
8de8fa5 Remove no longer needed method
5075530 Implement ToXJSON on all XValue types
2b4e780 Merge pull request #231 from nyaruka/better_docs
1e0cbe1 Merge branch 'master' into better_docs
ea94c41 Merge pull request #232 from nyaruka/json_fix
71ab58d Rename ToJSON -> ToXJSON, ToString -> ToXString, ToBool -> ToXBool
1d5cd8d Update flow test files
462dd2a Merge branch 'json_fix' into better_docs
3bbeffc XValues should be JSONable via json.Marshal
652e5b7 Fix documentation typos
4bfd3c8 Make run result created on use environment.Now()
7217227 Webhook date headers should be constant
d671c8d Let Now() be overriden by environment subclasses
6aff8af Invoke pandoc from docgen instead requiring user to pipe
a3a1276 Consolidate dostring parsing for events, actions, functions etc
51f58b1 Strip type name prefixes from docstrings
c3e9e06 Move documentation for all remaining context items into code
26d2a1b Allow documented items of the same type to be read from multiple directories
1888ae8 WIP
766ce1c Move docs for contacts and groups into the code
69233ac Enforce that all functions and tests must have examples and fix testing of these
3a5a367 Ensure any error during docgen stops generation
5d0a5f7 Merge pull request #228 from nyaruka/static_types
0da4f70 Rename RequireMarshalToXString to MustMarshalToXString
6fc3621 Add comparison functions to primitive types to avoid repeating these
254bf50 Tweaks
83dbccc run.results and contact.fields should render as JSON objects
b5f8ef1 Rename XTime > XDate and move types into their own go files
d6eed2e Get flow tests working
342c9ac Make nils convert to zero numbers and zero times like they used to
06da757 Port legacy package
ee852b1 Contact fields should use X types
31588a7 Convert all router tests
13cdc97 Don't stringify errors
f2de51d Fix test (/flows/ package now fully ported)
8812dea Add ErrorPassThru function wrapper
d45272e Switching flows package to use new static types (WIP again)
4f3b268 Switching flows package to use new static types (WIP)
6995e4a EvaluateTemplateAsString should return a regular golang string
0d1884b Use function wrappers to check for bad parameters
1d6c38d Rename types.CompareXValues to Compare and make it nil safe
8dd8f17 Rewrite excellent visitor to use new static types
ea872c1 Port all function tests
d8b968f More function tests ported
daa87ff Move refactored functions into new functions package and add some more tests
12db851 Add NewXErrorf factory function
17eccbf Refactor functions (WIP)
5828520 Add NewXNumberFromInt64 util function
e19dbb7 Add CompareXValues
7d50ecb Add ToXTime and ToInteger
5ab513f Add ToXNumber and make ToXBool work properly for types with length
87f83ff Move Reduce() to XValue and drop XObject which is no longer needed
16036be Remove type codes for new X types
bef3006 Add JSON XValue types
5656343 Use x instead of v as receiver variable for X types
3d8d832 Remove XReducible interface which can become a method on XObject
7f2ebba Merge branch 'master' into static_types
e9181da Merge pull request #227 from nyaruka/locations
083371c All types should convertable to string/json/bool
3aa6c06 Add new static type hierarchy for excellent
676da4e Remove no longer used ToStringArray
60d9ed1 Move IsNil back into utils
280cd7e Merge utils/text.go and utils/tokenizer.go
a7ed75f Move ResolveVariable into excellent and move scanner stuff into scanner.go
80cedc9 Move array.go and resolvers.go to excellent/types/
ce1a477 Move json.go from utils/ to excellent/types/
823c6b5 Move conversions from utils to excellent/types
4221237 Don't use conversions in contactql
c3143bf Move locations from utils to flows and break dependency between contactql and locations
c9c4a4a Merge branch 'master' into locations
f1e9c98 Merge pull request #226 from nyaruka/flow_tests
30fc21a Rename has_error -> is_error
e980915 WIP
ce9d6ff Move location searching functionality into RunEnvironment
5550508 Move flows/tests to flows/routers/tests
ffa4926 Move runEnvironment into its own file
ab56b72 Rework docgen to use same example session for functions, tests, events and actions
638a6fd Move flow tests from excellent package to flows/tests
374d396 Merge pull request #224 from nyaruka/reorganize
cb1cd86 Update variable names
c1c5bd0 Move Snakeify from resolvers (which needs to move to excellent) to utils/text.go
8ec9a7f Remove unused functions in conversions.go
6b18eef Move webhook stuff into flows package
bfd0cce Merge pull request #223 from nyaruka/length
b59c4f5 Merge branch 'master' into length
443e9fa Merge pull request #216 from nyaruka/results_fix
3eb0b53 Remove cruft
fe7b267 Tweak examples and function tests
5dd00bb Add array() excellent function
c904b90 Update docs
af14780 Merge string_length and array_length
22a35a9 Make map-like objects have length
0df2a67 Run results should throw error when trying to resolve non-existent result
0bdf45b Merge branch 'master' into results_fix
c31165b Merge pull request #214 from nyaruka/var_refactor_3
a6a1196 Enforce that ResolveVariable returns a valid type
594bfcc WIP
5b3c652 Merge pull request #213 from nyaruka/field-name
b72a079 Remove maps as types that conversions accept
4311a32 Merge branch 'master' into field-name
bd1657f Remove all conversions with int32/int64/float32/float64 types as these should never actually occur in expressions
d036dd4 change to on contactfield
f569f69 Merge pull request #211 from nyaruka/var_refactor_2
0bbb1fa Add extra test
f4b8889 Ensure that JSON fragments are resolved into atom types
a3d4172 Merge branch 'master' into var_refactor_2
7b87f40 Merge pull request #212 from nyaruka/numeric-comp
b59a7cc Merge pull request #207 from nyaruka/iso-dates
3e30740 Merge pull request #209 from nyaruka/rounder
037d958 strict decimal comparison, add string_cmp
e06d7a2 Merge pull request #210 from nyaruka/err-tests
fb5cec6 Remove unused functions
48be061 Fix test problem due to duplicated UUID
8a9974b more tests for has_error, remove unreachable code
776c48d Make Array an atom type and use it for contact.groups, contact.urns and msg.attachments
143715b make round places argument optional, round to nearest, allow negative places
7541d44 Rename interfaces for clarity
a85f12e Fix comments
301556a Locations are not an atom type
81b589d Remove conversions between golang slice types
a286c63 Use Array type for slices on context items
031eae4 Add Array type
e7f581d Add VariableIndexer interface for complex objects that can be indexed into
033bb94 anchor regexes to word boundaries
d673376 stricter iso parsing
a1de986 Merge pull request #206 from nyaruka/variables
59b1f89 force iso to have two digits for day/month
5c53b31 look for iso dates by default
03a2263 Fix comment
af86508 Merge pull request #203 from nyaruka/remove-int
fa04bde Replace all String() with Atomize() on variable resolvers
b5d2860 Add VariableAtomizer interface
4423151 Merge pull request #205 from nyaruka/date-formats
9314c55 document milli/micro/nano, comment on fractional seconds in parse_date
a0359d0 add test for micros
4a3c04b fix tests
fefb991 change date/time formats to new approved format
570524e remove int in expressions, map to round_down for legacy
5fb8610 Merge branch 'master' into variables
5e6775d Merge pull request #202 from nyaruka/fields2.0
82dcba0 Remove Default()
efc6991 More tests
5edbf19 Fix formatting
76ea53c Remove unused function and use conversions.To* for parsing date and decimal field values
f92b50a Merge branch 'master' into fields2.0
0d1500c Merge pull request #201 from nyaruka/errors
417c7cc Match new contact field format in rapidpro (WIP)
aec3af9 Fix typo and add test cases
f5701e6 Remove unused function
9a526e3 Rework excellent scanner to only parse given allowed top-levels variables as identifiers
30898cb Merge pull request #200 from nyaruka/zero_index_and_property_change
c7a9dc4 Calls to excellent.EvaluateTemplate should a,lso go thru run instance
58a10ec Refactor template evaluation so that it goes through the run object
b4f697d Throw error when resolving a key on a nil
9ac2780 Update docs
b054476 Rename field_name to property on SetContactProperty action and fix word(..) being 1-indexed
7b38e4f Merge pull request #199 from nyaruka/live_docs
e52e1d6 Fix errors generated during docgen and consolidte example session data used for actions/events/functions


Automated with GoReleaser
Built with go version go1.10 darwin/amd64