Cecilia Avila
3b6dc83161
Fix last eslint issues ( #4281 )
2022-07-15 08:00:07 -05:00
Joel Mut
5c1d4295ba
fix: [ #4204 ] Fix remaining eslint warnings - botbuilder-lg ( #4235 )
...
* Fix eslint issues in botbuilder-lg
* Update botbuilder-lg compat
* Fix EvaluationOptions nullSubstitution
* Missing dots.
* Revert "Update botbuilder-lg compat"
This reverts commit 2c88f64b18
.
* Add missing documentation for the Templates class
* Uppercase instead of lowercase in method definitions.
* ammend
Co-authored-by: Emiliano Quiroga <emiliano.quiroga@7-11.com>
Co-authored-by: Cecilia Avila <44245136+ceciliaavila@users.noreply.github.com>
2022-07-13 13:25:37 -05:00
Joel Mut
36ed9a0b59
Remove 'public' access modifier from botbuilder-lg folder ( #4219 )
2022-06-15 15:41:07 -05:00
Joel Mut
b96ece0440
Add LICENCE to libraries ( #4169 )
2022-03-21 17:43:03 -04:00
Cecilia Avila
0388aa2b2e
port: [ #3917 ] Add ThrowOnRecursive to LG AnalyzerOptions ( #5872 ) ( #4156 )
...
* Add ThrowOnRecursive to LG AnalyzerOptions
* Update botbuilder-lg.api documentation
2022-03-17 16:14:18 -07:00
Cecilia Avila
57ad9f51a4
port: [ #3967 ] add control property ( #5943 ) ( #4148 )
...
* Add enableFromFile property in templates class
* enable fromFile in activityFactory.test
* Update botbuilder-lg.api.md
Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
2022-03-17 16:09:53 -07:00
Josh Gummersall
ba4912afc9
chore: test:compat to botbuilder-lg ( #3846 )
2021-07-30 09:22:54 -07:00
Josh Gummersall
ffde26ab0f
fix: remove preview from LG readme ( #3873 )
2021-07-19 10:17:04 -07:00
Josh Gummersall
bde0f051b4
fix: add sortNumber test case ( #3807 )
...
Fixes #3791
2021-06-25 13:32:16 -07:00
Josh Gummersall
542641d0e8
chore: add missing packages to consumer test ( #3737 )
...
* feat: depcheck
* feat: separate workflows instead of conditional exec
* Revert "bump: runtypes (#3648 )"
This reverts commit c7a22fb465
.
* Downgrade other runtypes references
* chore: add missing packages to consumer test
Fixes #3736
* fix: downlevel runtime integrations
* fix: better consumer test errors
* feat: zod replaces runtypes for tsc compat
* fix: runtime error devexp, luis tests
* clean botframework-schema references in tests
Co-authored-by: stevengum <14935595+stevengum@users.noreply.github.com>
2021-06-22 09:29:11 -07:00
Hongyang Du (hond)
ae3ec20515
Allow back quotes in adaptive expression object and array construction ( #3700 )
2021-05-19 09:06:22 -07:00
Michael Richardson
a71af890bc
chore: Replace `catch` with `assert.rejects|throws` in tests (part 3 of 3) ( #3661 )
...
* convert try/catch to assert.rejects|throws
* no-op linitng
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2021-05-07 11:52:11 -07:00
Michael Richardson
89b43ccf4b
chore: Replace `catch` with `assert.rejects|throws` in tests (part 2) ( #3653 )
...
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
2021-05-06 10:34:56 -07:00
Hongyang Du (hond)
dde2652087
port: Apply Expression equal function in LG library ( #3623 )
...
* export commonEquals
* add null check
* add null check
2021-04-28 08:40:34 -07:00
Hongyang Du (hond)
6bb263f6f3
Fix recursive functions error in analyzer ( #3621 )
2021-04-27 08:40:05 -07:00
Hongyang Du (hond)
3fd905bd73
port: [LG]Improve the performance of parsing long body ( #3593 )
...
* Improve the performance of parsing long body
* fix error
2021-04-20 10:44:45 +08:00
Hongyang Du (hond)
c6b01e37a8
Reduce the use of "any" in LG library ( #3526 )
...
* init
* fix bug
* fix comments
* fix comments
2021-04-07 11:23:05 +08:00
Hongyang Du (hond)
b7dba8d3b1
port: Add alias feature for LG import ( #3496 )
...
* init
* add tests
* add test data
* update
* fix comments
* remove esModuleInterop
* retrigger
* retrigger
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2021-04-01 10:13:24 -07:00
Zichuan Ma
e09dc68224
port: enable LG syntax in OAuthInput ( #3409 )
...
* fixed a bug in expression parse to trim beginning '='
* fixed a bug in templates to recognize multiline correctly
* updated OAuthPrompt to make sendOAuthCard() public static
* Updated OAuthInput to enable LG syntax
* added tests
* make channelSupportOAuthCard() private
* added inline comments
* minor fix
* Revert "minor fix"
This reverts commit 09e30f0500
.
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
2021-03-22 14:30:13 -07:00
Hongyang Du (hond)
3022f799e9
port: Better binary data support in Expression/LG functions ( #3390 )
...
* remove Buffer
* Better binary data support in Expression/LG functions
* add binary operator
* update yarnlock
* fix comments
* Downgrade the ?? ioperator
* fix error
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
2021-03-17 10:37:52 +08:00
Hongyang Du (hond)
1dfdc13ff3
Add properties property for Template class ( #3272 )
...
* add properties for Template
* add $type
* retrigger
* fix comments
* fix failed tests
* add text trim
* retrigger ci
Co-authored-by: Dong Lei <donglei@microsoft.com>
2021-02-08 08:51:13 -08:00
Hongyang Du (hond)
ebda93d564
mark generated files ( #3257 )
2021-02-03 13:14:23 +08:00
Zichuan Ma
c05c59a6fc
added package 'uuid' ( #3166 )
2020-12-31 10:11:49 +08:00
Hongyang Du (hond)
751230944d
Surface LG CacheScope out in LG file options ( #3124 )
...
Co-authored-by: Josh Gummersall <1235378+joshgummersall@users.noreply.github.com>
2020-12-09 15:15:58 -08:00
Hongyang Du (hond)
7910422512
[PORT]Fix Random thread safety and control random seed to improve testability ( #3061 )
...
* init
* merge main
* fix error
* fix format error
* retrigger
* fix comments
* remove the unnecessary type check
* add Generics for class CustomEvent
2020-11-21 17:07:25 +08:00
Hongyang Du (hond)
9afa93623c
Compute LG SourceRange based on content instead of parsed token ( #3077 )
...
* fix crud bug
* fix
* fix comments
* adjust comments
2020-11-19 10:49:10 +08:00
Josh Gummersall
1873a0ffaf
monorepo: ci, lint, package.json overhaul ( #3058 )
...
* fix: package.json overhaul
- restructure eslint configuration for better isolation
- hoist many package.json script deps to root package.json
- fix all `clean` scripts
* fix: remove @types/node where possible (#3012 )
Fixes #2415
Fixes #2416
Fixes #2417
Fixes #2418
Fixes #2419
Fixes #2420
Fixes #2421
Fixes #2422
Fixes #2423
Fixes #2424
Fixes #2425
Fixes #2426
Fixes #2428
* ci: test with github actions
Cleans up workflows and runs on Windows as well
* fix: child_process.spawn only, add --scriptArgs
Use spawn isntead of exec to get around buffering issues and make code
less branchy.
Add --scriptArgs flag to pass extra flags directly to an npm script. An
unfortunately hacky way to support passing `--quiet` to eslint for CI.
* feat: --concurrent for uncoordinated execution
Also uses async.auto rather than custom dependency resolution code
2020-11-12 11:58:42 -08:00
Hongyang Du (hond)
60e5e9fc10
Support multi-line expression in Object/Array definition ( #3052 )
2020-11-12 10:37:19 +08:00
Hongyang Du (hond)
3b772bbb59
fix: optimize the code format of Expression and LG ( #3028 )
...
* Eslint fix
* apply eslint and fix tests format warnings
* Remove some unnecessary mark of eslint
2020-11-11 11:34:53 +08:00
Josh Gummersall
51ddc5902c
deps: upgrade to typescript 4.x ( #2990 )
...
* Bump typescript versions
* Overhaul BotFrameworkAdapter tests
Admittedly a bikeshed moment, but was bothered by some opaque test
failures. This makes the tests a lot more isolated, DRY, and generaly
nicer to work with.
* Package downlevel files
2020-11-10 16:48:32 -08:00
Josh Gummersall
6103ccf63f
monorepo: overhaul lerna/yarn/repo tools ( #2984 )
...
* Overhaul lerna/yarn/repo tools
- Clean up lerna.json
- Move to yarn workspaces
- Move to yarn for CI
- Add botbuilder-repo-utils with updateVersions script
* Remove unused cache step
* Clean up some docs
* Bump eslint, other deps
* Support more complex package versioning
* Fix pipeline variable use
* Address PR review
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2020-11-09 12:20:44 -08:00
Hongyang Du (hond)
3589effb8e
Fix a LG bug with a corner case in multiline scenario ( #3004 )
...
* Fix a LG bug with a corner case in multiline scenario
* fix the test format
* fix comments
2020-11-09 09:24:27 -08:00
Hongyang Du (hond)
708bc57286
[PORT] Port enhancements to take/skip/resolve/compare functions ( #2991 )
...
* Tolerate over-range operator in skip/take function
* Fully respect the original input in a string interpolation context
* support date type comparison in expression
* add timex resolve function (#2993 )
* revert the escape change
* keep formatDateTime function returns the same results with C# and add a lg test for resolve timex (#2994 )
* add timex resolve function
* fix formatDateTime function behavior
Co-authored-by: Fei Chen <feich@microsoft.com>
Co-authored-by: Shuai Wang <shuwan@microsoft.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
2020-11-03 09:16:00 -08:00
Shuai Wang
5b77dfcc06
[PORT] Pass Locale info from Activity to Adaptive-Expression and support locale in formatNumber prebuilt functions ( #2692 )
...
* add locale in expressions
* remove comments
* add doc for options
* move locale info to a seperate file
* eslint --fix
* swap args postions
* change the determination of default locale
* rewrite determineLocale
* retrigger
* change any to unknown
* refine some code
* retrigger
Co-authored-by: Dong Lei <donglei@microsoft.com>
2020-10-20 08:53:59 -07:00
Hongyang Du (hond)
25c3ec95b8
[PORT]Throw exception when circular reference is detected in LG imports ( #2913 )
...
* Throw exception when circular reference is detected in LG imports
* retrigger
* fix comments
* retrigger
2020-10-20 13:53:14 +08:00
Denise Scollo
00baf94347
[ #2602 ] [JSDoc] Add missing documentation for botbuilder-lg files ( #2830 )
...
* Replace warn with error for JSDOC rule
* Add missing documentation in botbuilder-lg files
* Adds xref, corrects missing documentation instances
* Add missing doc and spaces
Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
Co-authored-by: Ian Luca Scaltritti <ian.scaltritti@southworks.com>
Co-authored-by: Santiago Grangetto <santiago.grangetto@southworks.com>
2020-10-19 14:41:26 -07:00
Denise Scollo
7bf0399adb
[ #2602 ] [JSDoc] Add missing documentation for botbuilder-lg root files ( #2828 )
...
* Add missing JSDoc in botbuilder-lg files
* Fix typo in method description
* add missing returns and xrefs
Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
Co-authored-by: Santiago Grangetto <santiago.grangetto@southworks.com>
2020-10-19 12:34:27 -07:00
Josh Gummersall
ff97f622ad
Audit package.json "files" entries ( #2886 )
...
Also adds "private": true to non-published packages.
Fixes #2879
Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2020-10-14 13:04:03 -07:00
Hongyang Du (hond)
1b0a7d2e6c
[LG] Redo the default fallback of namespace ( #2882 )
2020-10-09 15:21:29 +08:00
Geoff Cox (Microsoft)
fd8a5a2fac
eslint --fix for botbuilder-lg ( #2875 )
2020-10-08 10:19:21 -07:00
Hongyang Du (hond)
0ebb664f97
[PORT]Support null/undefined result in LG output ( #2794 )
...
* init
* add null test
* refine
2020-10-03 20:12:05 +08:00
Josh Gummersall
7a5a7913d2
Updates a number of references to "main" ( #2803 )
2020-09-28 16:15:00 -07:00
Hongyang Du (hond)
2b4d4305d8
[PORT][LG] Add CacheScope option ( #2777 )
...
* init
* Add CacheScope option
* fix
2020-09-11 17:05:00 +08:00
Hongyang Du (hond)
01f6b291a9
[PORT]Add fullName to resource class and keep resource consistent across lg resources ( #2693 )
2020-09-11 16:15:36 +08:00
Shuai Wang
4a95911f54
change some words in tests ( #2746 )
2020-09-02 16:19:20 +08:00
Shuai Wang
1cd8aca598
support create obj with multi line in LG ( #2756 )
2020-09-02 15:51:39 +08:00
Shuai Wang
2637ecf8e4
[Port] Support accessing global memories in injecting LG templates as Expressions ( #2710 )
...
* Support accessing global memories in injecting LG
* fix failed tests
* fix an condition expr in CutomizedMemory
2020-09-02 15:24:45 +08:00
Hongyang Du (hond)
4f8af39e65
fix multiline bug ( #2751 )
2020-09-02 07:28:25 +08:00
Yuepeng Shen
8b7db50dfb
[Port] Fix error in parsing empty string in string interpolation ( #2748 )
...
* fix string
* test the changes
* format document
* keep original format
* correct lgtest of empty string parse
* reformat package.json
Co-authored-by: Shuai Wang <shuwan@microsoft.com>
2020-08-31 22:32:01 +08:00
Hongyang Du (hond)
68a52a2e40
Fix anonymous template name conflict ( #2595 )
...
Co-authored-by: Dong Lei <donglei@microsoft.com>
2020-07-28 13:54:20 +08:00