Tags: ROAGO/VM
Tags
Merge pull request NearSocial#190 from NearSocial/release-2.6.1 ## 2.6.1 - Add option to bypass the commit modal and skip transaction confirmation modal for all widgets (`features.commitModalBypass.bypassAll` and `features.bypassTransactionConfirmation`). This is intended to use by the gateways that expects external wallet to confirm all transactions. ```js initNear({ features: { commitModalBypass: { bypassAll: true, }, bypassTransactionConfirmation: true, }, }); ``` - Support `Big` and `BN` during a deep copy. - Fix typo. - FIX: Addresses a scoping error on the optional `config.errorCallback` function triggerd during Compliation errors and 'VM is dead' errors. - FIX: Prevent adding `data-component` key to `<Fragment>` elements.
Merge pull request NearSocial#181 from NearSocial/release-2.6.0 ## 2.6.0 - Support multiple Limited Access Keys on BOS gateway to enable "Don't ask me again" when interacting with third-party contracts on BOS. See NearSocial#148 - Provide an error callback in the vm init method to allow gateways to capture handled errors - FIX: Styled components were not possible to be extended due to an issue parsing Radix components
Merge pull request NearSocial#174 from NearSocial/release-2.5.6 ## 2.5.6 - FIX: Restrict native object prototypes from being accessed. To address BN issue, reported by BrunoModificato from OtterSec. - FIX: Filter out some ethers.js utils. Reported by BrunoModificato from OtterSec. - FIX: Remove potential XSS vulnerability for some SVG tags. Reported by BrunoModificato from OtterSec. - Minor: report widget `src` when VM throws an exception during rendering.
Merge pull request NearSocial#167 from NearSocial/release-2.5.5 ## 2.5.5 - FIX: Restrict attributes of `Files` component to a whitelist. Reported by BrunoModificato from OtterSec.
Merge pull request NearSocial#164 from NearSocial/release-2.5.4 Release 2.5.4
Merge pull request NearSocial#158 from NearSocial/release-2.5.3 ## 2.5.3 - FIX: Replace url-sanitize library with dompurify. Reported by BrunoModificato from OtterSec. - FIX: Replace internal usage of `in` operator with `hasOwnProperty` on dictionaries to avoid exposing certain built-in methods and properties. Reported by BrunoModificato from OtterSec. - FIX: `atob` and `btoa` are working correctly now.
Merge pull request NearSocial#150 from NearSocial/release-2.5.2 Release 2.5.2
Merge pull request NearSocial#145 from NearSocial/release-2.5.1 ## 2.5.1 - FIX: Add back `Ethers.send`, that was incorrectly removed as part of the NearSocial#128 - FIX: Disable `is` attribute to avoid conflicts with React. Reported by @brunomodificato
Merge pull request NearSocial#142 from NearSocial/release-2.5.0 ## 2.5.0 - Fix `default` case for the switch statement in `VM`. - Add a VM feature, `enableComponentSrcDataKey`, which adds the `data-component` attribute specifying the path of the comonent responsible for rendering the DOM element. - Add support for VM.require when using redirectMap. - Fixes an issue with VM.require not retaining context in migration to initGlobalFunctions. - Add `onLink` and `onImage` to Markdown component. It allows to display links and images differently. - Expose all VM functions into the state directly, it simplifies VM readability and implementation. - Expose certain native objects directly into the state. It should improve access to the functions. - Update the way events and errors are passed to the functions. - For events, expose `preventDefault()` and `stopPropagation()` functions. NOTE: Previously, all React's `SyntheticEvent`s were getting `preventDefault()` called by default. - For errors, expose `message`, `name` and `type`. - Fix `vm.depth` not being initialized. - Introduce `useMemo` hook. Similar to the React hook, it calculates a value and memoizes it, only recalculating when one of its dependencies changes. ```jsx const data = [ //...some large array ]; const filteredData = useMemo(() => { console.log("Filtering data"); return data.filter(/* some filtering criteria */); }, [data]); return ( <div> {filteredData.map(item => ( <div key={item.id}>{item.name}</div> ))} </div> ); ``` - Introduce `useCallback` hook. Similarly to the React hook, it memoizes a callback function and returns that memoized version unless one of its dependencies changes. ```jsx const incrementCounter = useCallback(() => { setCounter(counter + 1); }, [counter]); return ( <div> Counter = {counter} <div> <button onClick={incrementCounter}>Increment</button> </div> </div> ); ```
Merge pull request NearSocial#123 from NearSocial/missing-changes ## 2.4.2 - Add missing code changes (`cacheOptions` and `lodash`) from 2.4.0. > This happened due to revert from master that later cleaned changes from dev at merge conflict.
PreviousNext