188 Commits

Author SHA1 Message Date
Muhammad Hamza
4038a9794b
Fix inspect-next-changelogs workflows (#3383)
* Fix inspect-next-changelogs workflows

* Pass absolute path of CHANGELOG.md to the binary
2023-09-02 18:56:02 +09:00
Muhammad Hamza
595453686c
Stop dependabot from spamming PRs (#3347) 2023-07-29 22:01:25 +09:00
dependabot[bot]
4023c88c39
Bump indexmap from 1.9.3 to 2.0.0 (#3322)
* Bump indexmap from 1.9.3 to 2.0.0

Bumps [indexmap](https://github.com/bluss/indexmap) from 1.9.3 to 2.0.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/1.9.3...2.0.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update dependency minimum version

* clippy

* Bump MSRV to 1.64

* more clippy

* Update action that fails (probably outdated)

* Bump implicit-clone to 0.3.8

* Forgot to bump MSRV in some places

* Forgot to update setup-chromedriver in one place

* Bump implicit-clone to 0.4.0

* Update stderr files

* clippy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
2023-07-29 22:00:53 +09:00
Kevin Menard
0f3915677d
Update documentation.md (#3210)
Fix a typo in the issue template.
2023-04-04 22:55:54 +05:00
Kaede Hoshikawa
7178d2ea3d
Approve maintainer pull requests when a pull request is ready for review. (#3208) 2023-04-03 19:56:03 +03:00
dependabot[bot]
0f7c2bb276
Bump siku2/action-hosting-deploy from 0 to 1 (#3136)
Bumps [siku2/action-hosting-deploy](https://github.com/siku2/action-hosting-deploy) from 0 to 1.
- [Release notes](https://github.com/siku2/action-hosting-deploy/releases)
- [Commits](https://github.com/siku2/action-hosting-deploy/compare/v0...v1)

---
updated-dependencies:
- dependency-name: siku2/action-hosting-deploy
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 19:47:28 +03:00
dependabot[bot]
0898c24016
Bump baptiste0928/cargo-install from 1 to 2 (#3198)
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 1 to 2.
- [Release notes](https://github.com/baptiste0928/cargo-install/releases)
- [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md)
- [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2)

---
updated-dependencies:
- dependency-name: baptiste0928/cargo-install
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-02 03:02:27 +05:00
Julius Lungys
48dd69cdc6
Fix js-benchmark action (#3202)
* temp

* test2

* test3

* no ts

* more

* manifest

* fix warning
2023-04-02 00:23:53 +03:00
Kaede Hoshikawa
7982cc555e
Fix benchmark workflow (#3112)
* Try to fix benchmark workflow.

* Fix benchmark workflow.

* Fix benchmark workflow.

* Fix workflow.

* Fix benchmark workflow.

* Fix workflow.

* Disable headless mode.

* Install xvfb

* Remove unneeded install.
2023-03-14 14:32:00 +05:00
dependabot[bot]
07ea3f483f
Bump actions/checkout from 2 to 3 (#3141) 2023-03-05 07:04:59 +09:00
Kaede Hoshikawa
08f4fd3032
Fix Dependabot and GitHub Actions (#3111) 2023-03-05 07:03:10 +09:00
dependabot[bot]
16c043ac80
Bump actions/checkout from 2 to 3 (#3137)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-04 22:24:54 +05:00
Kaede Hoshikawa
8d308fb617
Separate PR and master size collection. (#3101) 2023-02-01 22:11:43 +05:00
dependabot[bot]
2b7856823e
Bump jetli/trunk-action from 0.2.0 to 0.4.0 (#3106)
Bumps [jetli/trunk-action](https://github.com/jetli/trunk-action) from 0.2.0 to 0.4.0.
- [Release notes](https://github.com/jetli/trunk-action/releases)
- [Commits](https://github.com/jetli/trunk-action/compare/v0.2.0...v0.4.0)

---
updated-dependencies:
- dependency-name: jetli/trunk-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-01 23:38:27 +09:00
dependabot[bot]
e65ee60599
Bump JamesSingleton/is-organization-member from 1.0.0 to 1.0.1 (#3075)
Bumps [JamesSingleton/is-organization-member](https://github.com/JamesSingleton/is-organization-member) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/JamesSingleton/is-organization-member/releases)
- [Commits](https://github.com/JamesSingleton/is-organization-member/compare/1.0.0...1.0.1)

---
updated-dependencies:
- dependency-name: JamesSingleton/is-organization-member
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 23:43:22 +09:00
dependabot[bot]
cc914b77a3
Bump actions/setup-node from 1 to 3 (#3076)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 1 to 3.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 23:42:34 +09:00
dependabot[bot]
685e1737bf
Bump jetli/trunk-action from 0.1.0 to 0.2.0 (#3073)
Bumps [jetli/trunk-action](https://github.com/jetli/trunk-action) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/jetli/trunk-action/releases)
- [Commits](https://github.com/jetli/trunk-action/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: jetli/trunk-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 23:24:35 +09:00
dependabot[bot]
cf9077ddb5
Bump actions/upload-artifact from 2 to 3 (#3074)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-04 23:24:12 +09:00
WorldSEnder
6160703c55
Try fixing the post-comment benchmark action, take 2 (#3047)
* Fix bash escaping
* fix clippy issues
* First checkout, then download artifacts
2022-12-17 16:09:51 +01:00
WorldSEnder
9d005432c5
Try fixing the post-comment benchmark action (#3045)
* Try fixing the post comment benchmark action

Store the complete event in PR_INFO
Checkout repo for github-action-benchmark

* add missing string escape
2022-12-17 15:18:56 +05:00
WorldSEnder
9cd33e1dec
use single quotes in gh actions (#3032) 2022-12-12 01:23:13 +05:00
WorldSEnder
698bd56e61
Update benchmark crates and workflow (#3027)
* update benchmark crates and workflow
* default to the merge commit for benchmarking
* setup framework benchmark early, after the caches

this doesn't restore the comments on PRs;
benchmark-action/github-action-benchmark has open issues about it
2022-12-11 15:07:14 +01:00
Muhammad Hamza
0ad939bd34
Consolidate publish workflows into one (#3026)
* Consolidate publish-* workflows into one

* Update workflow name
2022-12-11 18:20:42 +05:00
dependabot[bot]
20487f574c
Bump Swatinem/rust-cache from 1 to 2 (#3003)
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 1 to 2.
- [Release notes](https://github.com/Swatinem/rust-cache/releases)
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Swatinem/rust-cache/compare/v1...v2)

---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:47:24 +09:00
dependabot[bot]
e3dd9cd9af
Bump jetli/wasm-pack-action from 0.3.0 to 0.4.0 (#3002)
Bumps [jetli/wasm-pack-action](https://github.com/jetli/wasm-pack-action) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/jetli/wasm-pack-action/releases)
- [Commits](https://github.com/jetli/wasm-pack-action/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: jetli/wasm-pack-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:47:06 +09:00
dependabot[bot]
a2469dd669
Bump hmarr/auto-approve-action from 2 to 3 (#3001)
Bumps [hmarr/auto-approve-action](https://github.com/hmarr/auto-approve-action) from 2 to 3.
- [Release notes](https://github.com/hmarr/auto-approve-action/releases)
- [Commits](https://github.com/hmarr/auto-approve-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: hmarr/auto-approve-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:46:49 +09:00
dependabot[bot]
4f3f3a8aa2
Bump actions/cache from 2 to 3 (#3000)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:46:30 +09:00
dependabot[bot]
302187bb14
Bump peterjgrainger/action-create-branch from 2.0.1 to 2.4.0 (#3004)
Bumps [peterjgrainger/action-create-branch](https://github.com/peterjgrainger/action-create-branch) from 2.0.1 to 2.4.0.
- [Release notes](https://github.com/peterjgrainger/action-create-branch/releases)
- [Commits](https://github.com/peterjgrainger/action-create-branch/compare/v2.0.1...v2.4.0)

---
updated-dependencies:
- dependency-name: peterjgrainger/action-create-branch
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 21:46:00 +09:00
Kaede Hoshikawa
5ca91298e9
Update GitHub Actions (#2998)
* Update Workflow.

* Fix Workflows.

* Enables dependabot for github actions.

* Fix workflow.
2022-12-04 23:17:49 +09:00
Julius Lungys
5c943a7b1b
Fix release actions (#2986) 2022-11-28 21:08:49 +02:00
Muhammad Hamza
de9c1ebb39 Interpolate string properly 2022-11-25 18:28:11 +05:00
Muhammad Hamza
6dc1bda70a Fix publish actions 2022-11-25 18:28:11 +05:00
Muhammad Hamza
80ce114663
Do not commit and push changelog during release (#2977)
This is done prior to the release
2022-11-25 10:45:50 +00:00
Muhammad Hamza
40d2c9c5cf
Fix changelog workflow (#2954) 2022-11-08 23:02:29 +05:00
Muhammad Hamza
9e0d7966bc
Make Yew lints opt-in (#2882)
* Add compiler flag for Yew lints

* Use --cfg yew_lints in CI

* Remove lints feature

* bless the fail.stderr

* Fix CI
2022-09-25 21:54:24 +09:00
Kaede Hoshikawa
cffb7c5e7e
Configurable Runtime (#2772)
* Adds Runtime.

* A LocalRuntime.

* Add note.

* Add SSR benchmark.

* Only create default runtime if no custom runtime is set.

* Use jemalloc for benchmarking.

* Remove once_cell for web assembly.

* Add time.

* Fix wasm_bindgen.

* Adjust inlining.

* Optimise benchmark output.

* Optimise BufWriter.

* Add json output.

* Add Benchmark Workflow.

* Remove local set from tests.

* Fix Workflow syntax.

* Exclude benchmark from doc tests.

* Adjust feature flags.

* Adds a pinned channel implementation.

* Make Send bound explicit.

* Implement on immutable reference.

* Fix Sink close.

* run_pinned -> spawn_pinned.

* Add tests.

* Adjusts worker threads.

* Fix workflow.

* Remove futures-executor.

* Cargo update.

* Fix docs.

* Update notice.

* Fix docs.

* Fix docs.

* Switch to task spawning.

* Use futures unordered instead of spawn_local.

* Switch to join_all.

* Remove LocalPoolHandle.

* Fix docs.

* Spawn a single task.

* Fix merge failure.

* Remove LocalRuntime.

* Update documentation.

* Merge local-runtime-handle into local-runtime.

* Add some tests.

* Fix clippy notice.

* Fix comment.

* Address various review comments.

* Remove unused type.

* Fix clippy.

* Fix clippy.
2022-08-28 23:31:11 +09:00
Kaede Hoshikawa
5079885d9f
Pinned Channels (#2811)
* Switch to pinned channels.

* Fix ServerRenderer so it's not blocked until the result is resolved.

* Fix tests.

* Remove unused SendError.

* Revert channel-based BufWriter.

* Removed unused fmt module.

* Update docs.

* Add safety comments, adjust borrowing designs.

* Adjust oneshot as well.

* Fix workflow temporarily.

* Cell or UnsafeCell?

* Update safety notice.

* Should be sync.

* Actually should be both.

* Update packages/yew/src/platform/pinned/mpsc.rs

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-08-16 13:36:43 +09:00
Muhammad Hamza
a4e70914ac
Convert nightly from a feature flag to a compiler flag (#2827)
* `nightly_yew` compiler flag instead of `nightly` feature

* update ci

* update ci: 2

* fmt & nightly_yew for examples

* update size-cmp too
2022-08-15 04:03:45 +09:00
Kaede Hoshikawa
e026b4f54e
Fix SSR Benchmark. (#2805) 2022-08-03 21:35:47 +09:00
Kaede Hoshikawa
7562b650b1
SSR Benchmark (#2800)
* Add benchmark binary.

* Add benchmark workflow.

* Fix rendering stream.

* Revert "Fix rendering stream."

This reverts commit 651dd157520dccd19da337130713335a04c80f2d.

* Naming.

* Write to writer.

* Move result calculation into a method.

* Fix round calculation.

* Apply optimisation flag.

* Should be applied to profile bench.
2022-08-03 20:18:02 +09:00
Kaede Hoshikawa
924792c002
Enable Dependabot for Examples and Tools (#2785)
* Enable dependabot for examples and tools.

* Make everything to use Gloo.

* Require features for binaries.

* Update every Friday.
2022-07-21 01:23:22 +09:00
Muhammad Hamza
423ef28afe
Fix workflows (#2777)
* don't echo

it's shown in the previous command already

* use examples as cwd

this should help cargo detect the .cargo/config.toml file in the
directory

* add [unstable]
2022-07-10 20:37:18 +09:00
Muhammad Hamza
2e4a919679
Split the huge workspace into smaller & improve CI (#2774)
* Split repository into multiple workspaces, update CI

* pull_request_target for build-website workflow

This should allow the workflow to read secrets instead of requiring a different, publish-website workflow to be needed to publish the side

* pull_request_target for build-api-docs workflow

This should allow the workflow to read secrets instead of requiring a different, publish-api-docs workflow to be needed to publish the side

* use `paths` instead of `path_ignore` for examples

* cleanup main-checks.yml

* it's rustfmt, not fmt

* correct paths for workflow files

* it's rustfmt, not fmt: part 2 electric bolgoo

* me idiot: part infinity

* ???

* main checks should be the same then?

* ??? part 2

* it should work now

* more fixes

* checkout before using file, actually use stable for wasm-bindgen-cli

* Revert "pull_request_target for build-api-docs workflow"

This reverts commit 38977292c87f4f5b55a09eb458f9acb083158570.

* Revert "pull_request_target for build-website workflow"

This reverts commit 1638a0cd241f1cd195afae27405714f5111819e7.

* Benchmark workflow uses pull_request event

* pull_request for size-cmp
2022-07-07 00:17:03 +05:00
Kaede Hoshikawa
8013724b5d
Fix Workflow (#2767)
* Fix clippy.

* Fix cargo version as well.

* Fix changed pkgid syntax.
2022-07-01 21:08:11 +09:00
Kaede Hoshikawa
7f5eb3890c
Streamed SSR Response (#2697)
* yew::platform?

* Stream Response.

* Migrate example

* Remove old implementation.

* Remove extra implementation.

* Prefer String instead of Cow.

* Fix MSRV.

* Fix trybuild.

* Optimise Memory Allocation.

* More optimisation.

* BufWriter.

* Fix tests.

* Optimise BufWriter.

* Remove more allocations.

* Allow setting of buffer capacity.

* Fix capacity size.

* Fix capacity size.

* Remove unneeded const notation.

* Fix macro tests.

* Slightly optimises BufWriter committing logic.

* Optimise Implementation.

* Move BufWriter to a separate file.

* Additional Implementation Note.

* Adjust API so it matches `std::channel::mpsc::channel`.

* Fix feature soundness.

* Make a compatibility layer on channels.

* Fix clippy.

* Fix feature soundness.

* Fix CI.

* Inlining.

* Add documentation.

* Punctuation.

* Switch to tokio channel.

* Remvoe pin-project.

* Fix feature soundness.

* Typo.

* Move io to platform.

* Tokio does not compile.

* Fix workflow.

* Restore wrongly removed docs.

* Does tokio work?

* Switch back to tokio.

* Remove pin-project.

* Use cargo resolver 2.

* Add panic notice.

* Update documentation.

* Properties does not have to be send.

* Fix capacity checking as pointed in the review.

* Implementation order.

* Update note.
2022-07-01 14:26:12 +05:00
Muhammad Hamza
74f850a7ab
Fix benchmark workflow (#2760)
* Fix benchmark workflow

Pin the benchmark framework repo to a known good ref

* Set correct ref
2022-06-29 20:43:53 +02:00
Muhammad Hamza
9c65031258
Add playground to docs (#2751)
* Add #![doc(html_playground_url)]

* Add playground link in website navbar

* Option about playground issue

* translations

* Update packages/yew/src/lib.rs
2022-06-24 23:26:29 +05:00
Muhammad Hamza
54de041981
Nightly features (#2743)
* Nightly features

* Tests

* Fix tests

* Don't invent new syntax

* Do not impl Fn for UseReducerHandle

* Simplify UseForceUpdateHandle

* Manually specify clippy features

* Revert "Simplify UseForceUpdateHandle"

This reverts commit 761dbb0f8bb7c280054d55dcc724f08604ee4ece.

* `UseForceUpdateHandle`

* fmt
2022-06-24 19:21:02 +05:00
WorldSEnder
cda74c464b
Fix generic props structs (#2746)
* fixup of generic props structs

* fix build errors from msrv 1.57 on time crate

* build wasm-bindgen-cli with cargo +stable
2022-06-23 11:21:52 +02:00
Muhammad Hamza
526ecb975e
Increase MSRV to 1.56.1 (#2740) 2022-06-19 18:45:52 +05:00