Skip to content

Commit

Permalink
Merge branch 'main' into hqd-compat-types
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Apr 23, 2024
2 parents a1309b8 + e2c8a45 commit cab57f2
Show file tree
Hide file tree
Showing 238 changed files with 51,440 additions and 51,240 deletions.
4 changes: 0 additions & 4 deletions .codesandbox/ci.json

This file was deleted.

20 changes: 10 additions & 10 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ In the interest of fostering an open and welcoming environment, we as contributo

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

- [ ] Check if updating to the latest Preact version resolves the issue
Expand All @@ -14,9 +13,10 @@ A clear and concise description of what the bug is.

**To Reproduce**

If possible, please provide a CodeSandbox/Codepen that demonstrates the issue. You can use the following template: https://codesandbox.io/s/preact-x-preact-cli-3-starter-vj285y2rn3
If possible, please provide a link to a StackBlitz/CodeSandbox/Codepen project or a GitHub repository that demonstrates the issue. You can use the following template on StackBlitz to get started: https://stackblitz.com/edit/create-preact-starter

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. See error
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: feature request
assignees: ''

---

**Describe the feature you'd love to see**
Expand Down
277 changes: 65 additions & 212 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,251 +6,104 @@ on:
branches:
- '**'
paths:
- 'src/**.js'
- '**/src/**.js'
push:
branches:
- master
- restructure
- main
- v11
paths:
- 'src/**.js'
- '**/src/**.js'

jobs:
build_test:
name: Build & Test
uses: ./.github/workflows/ci.yml

prepare:
name: Prepare benchmarks
name: Prepare environment
runs-on: ubuntu-latest
needs: build_test
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
- name: Download locally built preact package
uses: actions/download-artifact@v3
with:
path: ~/.npm
# This uses the same name as the build-action so we can share the caches.
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- name: Package
# Use --ignore-scripts here to avoid re-building again before pack
run: |
npm pack --ignore-scripts
mv preact-*.tgz preact.tgz
tar -xzf preact.tgz
rm preact.tgz
- name: Upload build output
uses: actions/upload-artifact@v2
name: npm-package
- run: mv preact.tgz preact-local.tgz
- name: Upload locally built preact package
uses: actions/upload-artifact@v3
with:
name: build-output
path: package/
- uses: andrewiggins/download-base-artifact@v1
name: bench-environment
path: preact-local.tgz
- name: Download base package
uses: andrewiggins/download-base-artifact@v3
with:
artifact: npm-package
workflow: ci.yml
required: false
- run: mv preact.tgz preact-main.tgz
- name: Upload base preact package
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-output
path: preact.tgz
name: bench-environment
path: preact-main.tgz

bench_todo:
name: Bench todo
uses: ./.github/workflows/run-bench.yml
needs: prepare
with:
benchmark: todo/todo
timeout: 10

bench_text_update:
name: Bench text_update
runs-on: ubuntu-latest
name: Bench text-update
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench text_update.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/text_update.json
with:
benchmark: text-update/text-update
timeout: 10

bench_many_updates:
name: Bench many_updates
runs-on: ubuntu-latest
name: Bench many-updates
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench many_updates.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/many_updates.json
with:
benchmark: many-updates/many-updates
timeout: 10

bench_02_replace1k:
name: Bench 02_replace1k
runs-on: ubuntu-latest
bench_replace1k:
name: Bench replace1k
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench 02_replace1k.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/02_replace1k.json
with:
benchmark: table-app/replace1k

bench_03_update10th1k_x16:
bench_update10th1k:
name: Bench 03_update10th1k_x16
runs-on: ubuntu-latest
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench 03_update10th1k_x16.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/03_update10th1k_x16.json
with:
benchmark: table-app/update10th1k

bench_07_create10k:
name: Bench 07_create10k
runs-on: ubuntu-latest
bench_create10k:
name: Bench create10k
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench 07_create10k.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/07_create10k.json
with:
benchmark: table-app/create10k

bench_hydrate1k:
name: Bench hydrate1k
runs-on: ubuntu-latest
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench hydrate1k.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/hydrate1k.json
with:
benchmark: table-app/hydrate1k

bench_filter_list:
name: Bench filter_list
runs-on: ubuntu-latest
name: Bench filter-list
uses: ./.github/workflows/run-bench.yml
needs: prepare
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- uses: actions/download-artifact@v2
with:
name: build-output
- name: install & build
run: |
cd benches
npm ci
- name: bench
run: |
export CHROMEDRIVER_FILEPATH=$(which chromedriver)
cd benches
npm run bench filter_list.html
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: results
path: benches/results/filter_list.json
with:
benchmark: filter-list/filter-list
timeout: 10
Loading

0 comments on commit cab57f2

Please sign in to comment.