Commit Graph

2266 Commits

Author SHA1 Message Date
Adria Navarro 50ac79396e Expose iife 2024-11-19 11:00:58 +01:00
Adria Navarro fb80647013 Proper types 2024-11-19 11:00:58 +01:00
Adria Navarro 2867515c0e Exclude src from npm packages 2024-11-19 11:00:58 +01:00
Sam Rose deee5e4e05
Put the frontend back to how it was. 2024-10-07 12:35:05 +01:00
Sam Rose c21d8a8131
Remove inaccurate comment. 2024-10-07 12:27:17 +01:00
Sam Rose 55699cfaff
Don't clone non-object/non-arrays, use default JS in manifest.spec.ts. 2024-10-07 12:23:22 +01:00
Sam Rose 2c451d494b
Backend/frontend JS parity, deep clone optimisation. 2024-10-07 12:04:45 +01:00
Sam Rose c10cdd3aaf
Fix undefined error. 2024-10-04 11:56:55 +01:00
Sam Rose c247b194c2
Fix error propagation all the way out of processStringSync. 2024-10-04 11:48:19 +01:00
Sam Rose 4fb870e449
Make processStringSync's throw behaviour opt-in. 2024-10-04 11:30:10 +01:00
Sam Rose 2e4607edb6
Ensure processObjectSync does not throw. 2024-10-04 11:13:30 +01:00
Sam Rose 28e6a03929
Include syntax errors in processJS 2024-10-04 10:32:33 +01:00
Sam Rose 15a30b1d9e
Fix yet more tests. 2024-10-03 16:32:14 +01:00
Sam Rose 03c514be4c
Fix tests. 2024-10-03 16:16:42 +01:00
Sam Rose 646fc5e6bd
Respond to PR comment. 2024-10-03 15:56:19 +01:00
Sam Rose 795b10c4c9
Fix types in string-templates. 2024-10-03 13:11:35 +01:00
Sam Rose f9ccbbe081
Fix jsRunner.spec.ts. 2024-10-03 13:11:01 +01:00
Sam Rose df242cc2ad
Don't break the fact that processStringSync returns a string. 2024-10-03 13:07:22 +01:00
Sam Rose fdbe633b02
Get errors working on the client side as well. 2024-10-03 12:43:57 +01:00
Sam Rose b004ef5448
Pull the error object out of isolated-vm when a user script throws an error. 2024-10-03 09:42:08 +01:00
mike12345567 bbc33d37e6 PR comments. 2024-08-15 11:04:57 +01:00
mike12345567 87999db659 Adding test cases. 2024-08-14 18:12:33 +01:00
Michael Drury 165eff2e5a First pass - no tests yet, had to make some changes to how pre-processing works, as well as updating the string based on context, if there is any overlap between the helpers and context it will prefix the overlap with ./ - this means to look in context. 2024-08-14 17:21:40 +01:00
mike12345567 e34257a018 One more fix. 2024-07-22 18:22:04 +01:00
mike12345567 b611b0da33 Fixing JS generation ordering. 2024-07-22 18:12:12 +01:00
mike12345567 c857bacafa Fix for #14201, adds the test helper into the manifest correctly. 2024-07-22 16:26:59 +01:00
mikesealey 004db2d414 prepares manifest for Lorem Ipsum handlebar helper 2024-07-04 16:56:25 +01:00
mikesealey 457e9235f0 Revert "updates Handlebar-Helper manifest for Lorem helper"
This reverts commit fcdd933f7d.
2024-07-04 16:47:56 +01:00
mikesealey fcdd933f7d updates Handlebar-Helper manifest for Lorem helper 2024-07-04 16:47:08 +01:00
mike12345567 332bf09116 Fixing up the typing in the gen collection script so that it is valid TS again and will work. 2024-07-04 14:50:59 +01:00
Adria Navarro 6da459be59 Add missing dep 2024-07-04 11:50:06 +02:00
Peter Clement c417a5e627
Replace multiple spaces in bindings with one space (#14018)
* replace multiple spaces in bindings with one space

* add some tests and update regex to account for strings

* update regex to character based approach

* simplify regex to only look for spaces after {{

---------

Co-authored-by: Michael Drury <me@michaeldrury.co.uk>
2024-06-28 14:18:15 +01:00
mike12345567 ebf8f54bb7 Upgrading to Typescript 5.5.2 2024-06-24 16:41:28 +01:00
mike12345567 32e4493a96 Quick fix for using the roles option within the builder - this was broken in JS which was a bit of a pain - this works properly now and allows more compat between HBS and JS. 2024-06-05 11:58:40 +01:00
Michael Drury ff29d36528
Revert "Getting rollup package versions consistent through all packages" 2024-04-26 14:59:19 +01:00
mike12345567 22a67eb769 Matching rollup version across all packages, there was a lot of mis-match and I was running into some build issues due to this, getting everything on the same version so that they can all use the same package - this also requires updating all .js extensions to .mjs to correctly support the imports. 2024-04-25 18:43:54 +01:00
mike12345567 659efe67d7 Adding edge case handling to the binding readable/runtime conversion, checking if it is trying to replace a binding which a substring of a helper name, which causes the helper to become un-usable. 2024-04-19 16:40:45 +01:00
Adria Navarro a88924a418 Remove // eslint-disable-next-line no-unused-vars 2024-04-17 12:24:41 +02:00
Adria Navarro 56ed9a477f Add tests 2024-04-04 21:27:22 +02:00
Adria Navarro 8a13446fe4 Clean exports 2024-04-04 21:27:21 +02:00
Adria Navarro 35a0a4d44c Add tests 2024-04-04 21:27:21 +02:00
mike12345567 936762c8ee Removing all eval warnings from rollup. 2024-03-27 13:35:47 +00:00
Adria Navarro 89767162bb Add comments 2024-03-21 18:41:23 +01:00
Andrew Kingston 67a1f82ed2 Merge branch 'BUDI-8113/fix-isolated-vm-bundler' of github.com:Budibase/budibase into BUDI-8113/fix-isolated-vm-bundler 2024-03-21 16:59:40 +00:00
Andrew Kingston 4102459f98 Fix additional helpers not working 2024-03-21 16:59:07 +00:00
Adria Navarro 9ba8a21f29
Merge branch 'master' into BUDI-8113/fix-isolated-vm-bundler 2024-03-21 17:35:21 +01:00
Adria Navarro 09368340de Add tests 2024-03-21 17:29:55 +01:00
andz-bb 55e0145fdb fix for boolean values getting stripped when running processObject 2024-03-21 16:10:52 +00:00
Adria Navarro 001e48179a Lint 2024-03-21 17:09:20 +01:00
Adria Navarro c679984a99 Don't use barrel files 2024-03-21 16:10:27 +01:00