Skip to content

Releases: wpdas/alem

v1.3.1

03 Jun 21:32
Compare
Choose a tag to compare

v1.3.0

03 Jun 21:20
d5f2dd3
Compare
Choose a tag to compare

News

1 - Compile a stateless component as stateful. This will not add states to the component. When using this method, the component is generated as a Widget. This setting can also be useful to force the file to be created separately if you configure the project to create separate files for stateful components.

To force transform a stateless component into a stateful one, simply add the following signature "as stateful"; at the top, for example:

"as stateful";

const Spinner = () => (
  <div className="spinner-border" role="status">
    <span className="visually-hidden">Loading...</span>
  </div>
);

export default Spinner;

2 - Configuration to eject stateful components. This causes each stateful component to be generated in a separate file. Use the alem.config.json file to set the following configuration:

options: {
  ejectStatefulComponents: true
}

Result:
separate-components

v1.2.1

17 May 00:53
Compare
Choose a tag to compare
  • Fix package files

v1.2.0

16 May 21:53
0ba21fd
Compare
Choose a tag to compare
  • Added support for Tailwind;
  • Fixed problem where changing a file that was not of type JavaScript or TypeScript would break the compiler;
  • Added plugin support to make it easier to adapt new features;
  • Added a new step to check if the application name has special characters.

v1.1.3

14 May 16:34
Compare
Choose a tag to compare
  • added new wallets to the gateway

v1.1.2

11 May 20:09
1ddc5ca
Compare
Choose a tag to compare
  • Fixed issue where new deeper files were not being injected to the file schemas, causing errors during the compilation;
  • Fixed issue where widget props was not being executed as string. See here: transformSchemaToWidgettransformWidgetInChildProps
  • version updated: 1.1.2

v1.1.1

08 May 20:06
Compare
Choose a tag to compare
  • fix issue with createLoaderWidget flag

v1.1.0

08 May 19:33
5a8bd47
Compare
Choose a tag to compare

Improve File Change Detector

  1. logs message updated
  2. added feature to re-build only the changed files when there's a new change

New modules:

  • getFileExports: get exported items from file;
  • loadCachedFilesInfo: used to load previous files info and change the ones affected by the file change.

v1.0.1

03 May 21:45
Compare
Choose a tag to compare

Esse módulo é usado para processar componentes stateful dentro de arrow functions nas propriedades de outros componentes que devem se tornar Widgets no bundle final. Exemplo:

Isso:

<Foo renderItem={project => <A_192 projectId={project.registrant_id} />} />

Vai se tornar isso:

<Foo renderItem: (project) => <><Widget loading=" " code={props.alem.componentsCode.A_192} props={{ ...{ projectId: project.registrant_id, ...props } }} /></>

v1.0.0

02 May 20:59
Compare
Choose a tag to compare