Skip to content

Commit 25941f6

Browse files
committed
Merge branch 'release/2.1.0'
2 parents e556026 + 7a2bf7f commit 25941f6

File tree

234 files changed

+17195
-15736
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+17195
-15736
lines changed

.config/source-license-header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/**
22
* @license
3-
* Copyright (c) 2021 Handsoncode. All rights reserved.
3+
* Copyright (c) 2022 Handsoncode. All rights reserved.
44
*/

.config/webpack/development.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,24 @@ module.exports.create = function create() {
1717
c.devtool = 'source-map';
1818
// Exclude all external dependencies from 'base' bundle
1919
c.externals = {
20-
moment: {
21-
root: 'moment',
22-
commonjs2: 'moment',
23-
commonjs: 'moment',
24-
amd: 'moment',
25-
},
2620
chevrotain: {
2721
root: 'chevrotain',
2822
commonjs2: 'chevrotain',
2923
commonjs: 'chevrotain',
3024
amd: 'chevrotain',
3125
},
26+
'tiny-emitter': {
27+
root: 'TinyEmitter',
28+
commonjs2: 'tiny-emitter',
29+
commonjs: 'tiny-emitter',
30+
amd: 'tiny-emitter',
31+
},
32+
unorm: {
33+
root: 'unorm',
34+
commonjs2: 'unorm',
35+
commonjs: 'unorm',
36+
amd: 'unorm',
37+
},
3238
};
3339
c.plugins.push(new WebpackBar({ name: ` ${PACKAGE_FILENAME}.js` }));
3440
});

.config/webpack/production.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@ module.exports.create = function create() {
1717

1818
c.optimization = {
1919
minimize: true,
20-
minimizer: [
21-
new TerserPlugin({
22-
terserOptions: {
23-
mangle: false, // This option has to be disabled, otherwise GPU function doesn't work for min files.
24-
compress: false, // This option has to be disabled, otherwise GPU function doesn't work for min files.
25-
}
26-
})
27-
]
20+
minimizer: [new TerserPlugin()]
2821
};
2922

3023
c.plugins.forEach((plugin) => {

.eslintrc.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ module.exports = {
3232
'@typescript-eslint/no-unnecessary-boolean-literal-compare': ['error'],
3333
'@typescript-eslint/no-extra-non-null-assertion': ['error'],
3434
'@typescript-eslint/array-type': ['error'],
35-
'@typescript-eslint/space-before-function-paren': ['error', 'never'],
35+
'@typescript-eslint/space-before-function-paren': ["error", {
36+
"anonymous": "never",
37+
"named": "never",
38+
"asyncArrow": "always"
39+
}],
3640
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true }],
3741
'@typescript-eslint/no-extra-semi': ['error'],
3842
'@typescript-eslint/comma-spacing': ['error'],

.github/pull_request_template.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
### Context
2-
<!--- Why is this change required? What problem does it solve? -->
2+
<!--- Why are your changes required? What problem do they solve? -->
33

4-
### How has this been tested?
5-
<!--- Please describe in detail how you tested your changes (doesn't apply to translations and documentation changes). -->
4+
### How did you test your changes?
5+
<!--- Describe in detail how you tested your changes. -->
66

77
### Types of changes
8-
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
9-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
10-
- [ ] New feature or improvement (non-breaking change which adds functionality)
11-
- [ ] Bug fix (non-breaking change which fixes an issue)
12-
- [ ] Additional language file or change to the existing one (translations)
8+
<!--- What types of changes does your code introduce? Put an `x` in each box that applies. -->
9+
- [ ] Breaking change (a fix or a feature because of which an existing functionality doesn't work as expected anymore)
10+
- [ ] New feature or improvement (a non-breaking change that adds functionality)
11+
- [ ] Bug fix (a non-breaking change that fixes an issue)
12+
- [ ] Additional language file, or a change to an existing language file (translations)
1313
- [ ] Change to the documentation
1414

1515
### Related issues:
@@ -18,9 +18,12 @@
1818
3.
1919

2020
### Checklist:
21-
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
22-
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
21+
<!--- Go through the points below, and put an `x` in each box that applies. -->
22+
<!--- If you're unsure about any of these, contact us. We're always glad to help! -->
23+
- [ ] My change is compliant with the [OpenDocument](https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part4-formula/OpenDocument-v1.3-os-part4-formula.html) standard.
24+
- [ ] My change is compatible with Microsoft Excel.
25+
- [ ] My change is compatible with Google Sheets.
2326
- [ ] My code follows the code style of this project.
24-
- [ ] I described the modification in the CHANGELOG.md file.
25-
- [ ] My change requires a change to the documentation.
26-
- [ ] My change requires a migration guide.
27+
- [ ] I described my changes in the [CHANGELOG.md](https://github.com/handsontable/hyperformula/blob/master/CHANGELOG.md) file.
28+
- [ ] My changes require a documentation update.
29+
- [ ] My changes require a migration guide.

.github/workflows/performance.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Performance
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize # the head branch is updated from the base branch, new commits are pushed to the head branch, or the base branch is changed
9+
10+
jobs:
11+
performance-test:
12+
strategy:
13+
matrix:
14+
node-version: [ '16' ]
15+
os: [ 'ubuntu-latest' ]
16+
name: performance-test
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- name: Setup Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d # https://github.com/actions/setup-node/releases/tag/v1.4.4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: (base) Checkout
25+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # https://github.com/actions/checkout/releases/tag/v2.3.4
26+
with:
27+
ref: ${{ github.event.pull_request.base.sha }}
28+
29+
- name: (base) Install dependencies
30+
run: |
31+
npm ci
32+
33+
- name: (base) Run performance tests
34+
run: |
35+
npm run benchmark:write-to-file base.json
36+
37+
- name: (head) Checkout
38+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # https://github.com/actions/checkout/releases/tag/v2.3.4
39+
with:
40+
clean: false
41+
42+
- name: (head) Install dependencies
43+
run: |
44+
npm ci
45+
46+
- name: (head) Run performance tests
47+
run: |
48+
npm run benchmark:write-to-file head.json
49+
50+
- name: Compare the results
51+
run: |
52+
npm run benchmark:compare-benchmarks base.json head.json performance-report.md
53+
54+
- name: Publish a comment - header
55+
uses: marocchino/sticky-pull-request-comment@6804b5ad49d19c10c9ae7cf5057352f7ff333f31 # https://github.com/marocchino/sticky-pull-request-comment/tree/v1.6.0
56+
with:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
message: |
59+
## Performance comparison of head (${{ github.event.pull_request.head.sha }}) vs base (${{ github.event.pull_request.base.sha }})
60+
61+
- name: Publish a comment - performance comparison report
62+
uses: marocchino/sticky-pull-request-comment@6804b5ad49d19c10c9ae7cf5057352f7ff333f31 # https://github.com/marocchino/sticky-pull-request-comment/tree/v1.6.0
63+
with:
64+
append: true
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
path: performance-report.md

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
!es/**/*
99
!typings/**/*
1010
!github-hf-logo-blue.svg
11-
!gpl-3.0.txt
1211
!CHANGELOG.md

0 commit comments

Comments
 (0)