Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit cfc79f8

Browse files
committed
feat: remove showasync component, cleanup types
Remove ShowAsync component to reduce bundle size and maintain focus. This package is about semantic conditional rendering and async rendering does not belong here.
1 parent 855e0c7 commit cfc79f8

36 files changed

+181
-435
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
* __Growing list of semantic helper components__
4343
* __[List](https://csvenke.github.io/react-semantic-render/#/List)__: Renders content from an array of data.
4444
* __[Show](https://csvenke.github.io/react-semantic-render/#/Show)__: Renders content when specified condition is true.
45-
* __[ShowAsync](https://csvenke.github.io/react-semantic-render/#/ShowAsync)__: Renders content when specified promise is pending, resolved and rejected.
4645
* __[Switch](https://csvenke.github.io/react-semantic-render/#/Switch)__: Renders content from first __[Switch.Case](https://csvenke.github.io/react-semantic-render/#/SwitchCase)__ that matches, else __[Switch.Default](https://csvenke.github.io/react-semantic-render/#/SwitchDefault)__ if it exists.
4746
* __Small bundle size__
4847
* __Blazing fast__

docs/build/1.612a4b41.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/build/1.8d6330da.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/bundle.879d93c2.js

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/bundle.b3b4f771.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>react-semantic-render</title></head><body><div id="rsg-root"></div><script src="build/bundle.b3b4f771.js"></script></body></html>
1+
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>react-semantic-render</title></head><body><div id="rsg-root"></div><script src="build/bundle.879d93c2.js"></script></body></html>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-semantic-render",
3-
"version": "1.1.3",
3+
"version": "2.0.0",
44
"description": "Semantic helper components for rendering content with React.",
55
"author": "Christian Svenkerud",
66
"contributors": [

rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default [
3737
input: [
3838
'src/components/List/List.tsx',
3939
'src/components/Show/Show.tsx',
40-
'src/components/ShowAsync/ShowAsync.tsx',
4140
'src/components/Switch/Switch.tsx',
4241
],
4342
output: {

src/components/List/index.test.tsx renamed to src/components/List/List.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { shallow } from 'enzyme';
22
import * as React from 'react';
33

4-
import List from './';
4+
import List from '.';
55

66
describe('with render', () => {
77
const input = [1, 2, 3];

0 commit comments

Comments
 (0)