xobotyi
Repos
21
Followers
50
Following
2

Robust PHP client for beanstalkd work queue

86
9

rsync dependency-free wrapper library for PHP7.1+

90
6

viewport.jquery - simple but handy jQuery plugin adding methods and CSS selectors to check if element is in certain viewport

152
23

The best React custom scrollbars component

704
67

Yet another classname string builder (the fastest one)

41
2

Events

issue comment
feat: implement `useSsrState` hook

But there will be an issue with typing, that I have no idea how to overcome

Created at 3 days ago
issue comment
feat: implement `useSsrState` hook

But there will be an issue with typing, that I have no idea how to overcome

Created at 3 days ago
issue comment
feat: implement `useSsrState` hook
  1. Id rather remove all options. This hook can be reworked to use variables instead of context, to avoid context bloating.
  2. Yes the plan is to rework all currently isomorphic hooks and make major release.
Created at 3 days ago

chore(deps-dev): bump typescript from 4.8.4 to 4.9.3 (#1019)

Created at 6 days ago
pull request closed
chore(deps-dev): bump typescript from 4.8.4 to 4.9.3

Bumps typescript from 4.8.4 to 4.9.3.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Created at 6 days ago

fix: disable @typescript-eslint/no-floating-promises for tests

That linter raised false-positives errors

Created at 6 days ago
issue comment
chore(deps-dev): bump typescript from 4.8.4 to 4.9.3

thats just a matter of changed types of testing library - im disabling false-positive linter for tests

Created at 6 days ago
issue comment
chore(deps-dev): bump typescript from 4.8.4 to 4.9.3

there were no need to add @types/node, the only thing required - stub types fix.

Created at 6 days ago

feat: implement useRenderCount hook (#990)

chore(release): 19.2.0 [skip ci]

19.2.0 (2022-11-20)

Features

docs: fix typos and improve language in docs (#1017)

docs(contributor): contrib-readme-action has updated readme

chore(deps-dev): bump concurrently from 7.5.0 to 7.6.0 (#1021)

Bumps concurrently from 7.5.0 to 7.6.0.


updated-dependencies:

  • dependency-name: concurrently dependency-type: direct:development 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>

chore(deps-dev): bump @react-hookz/eslint-config from 1.7.4 to 1.7.5 (#1022)

Bumps @react-hookz/eslint-config from 1.7.4 to 1.7.5.


updated-dependencies:

  • dependency-name: "@react-hookz/eslint-config" dependency-type: direct:development 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>

chore(deps-dev): bump typescript from 4.8.4 to 4.9.3

Bumps typescript from 4.8.4 to 4.9.3.


updated-dependencies:

  • dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ...

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

fix(navigator.vibrate.ts): Fix outdated parameter type

This relates to the release of TypeScript 4.9. The correctness fixes related to lib.d.ts which were a part of this release broke the parameter type of this mock-function.

Revert "fix(navigator.vibrate.ts): Fix outdated parameter type"

This reverts commit ab98ede1ec73040d34c63633be247cfcfd483e05.

build(package.json): Install @types/node

This relates to the release of TypeScript 4.9, which broke our build. In the corresponding issue in the TypeScript repo, multiple solutions were proposed of which installing @types/node seems to work the best.

fix: proper types for navigator.vibrate tests stub

Created at 6 days ago

fix: proper types for navigator.vibrate tests stub

Created at 6 days ago
pull request opened
feat: implement `useSsrState` hook

What new hook does?

Provides stable value that other hooks can use to determine that applocation is in SSR mode.

Sad enough there are no reliable markers that application is hydrated after SSR - therefore we have to introduce own context.

Checklist

  • [x] Have you read contribution guideline?
  • [x] Does the code have comments in hard-to-understand areas?
  • [ ] Is there an existing issue for this PR?
    • link issue here
  • [x] Have the files been linted and formatted?
  • [x] Have the docs been updated?
  • [x] Have the tests been added to cover new hook?
  • [x] Have you run the tests locally to confirm they pass?
Created at 6 days ago
create branch
xobotyi create branch useSsrState
Created at 6 days ago
issue comment
fix nullable slice or array

What is getgo? synonim for "from the start" or "immediately" 🤔

Custom behavior can be configured in openapi3.Reflector with DefaultOptions that is exposed on jsonschema.Reflector.

Thanks for the hint - will let you on tests results.

Created at 6 days ago
issue comment
fix(useMediaQuery): Return boolean describing media query match on first render

Yes, they should have, but in my eyes it is way more convenient that to be sure that you pass proper hook config to each hook that has isomorphic behavior.

Created at 6 days ago
issue comment
fix nullable slice or array

Will dig tomorrow but it won't be helpful from a getgo, since jsonschema-go is transitory dependency, we're using swaggest/openapi-go.

Also just to mention - that option you added, you seems forgot about docs, not a word in readme.

Created at 1 week ago
issue comment
fix(useMediaQuery): Return boolean describing media query match on first render

Also I have an idea to replace all that crap with initializeWithValue props in favor of context provider that will automatically tell all our hooks that we're in SSR mode without the need of passing extra arguments to hooks

Created at 1 week ago
issue comment
fix(useMediaQuery): Return boolean describing media query match on first render

SSR will be first-rendered with undefined, client with some value - react will freak out on that.

Created at 1 week ago
issue comment
fix(useMediaQuery): Return boolean describing media query match on first render

One problem - it will cause hydration error for SSR.

Initialisation should be flagged via hook parameters.

Created at 1 week ago
delete branch
xobotyi delete branch pr/fix-typos-and-improve-language-in-docs
Created at 1 week ago

docs: fix typos and improve language in docs (#1017)

Created at 1 week ago
pull request closed
Fix typos and improve language in docs

What is the problem?

When I first discovered this repo, the only thing I disliked was that the language in the docs was a bit cluncky at times.

Since good docs are really important for any library, I figured that I might go through them and attempt to improve them as much as I can. I am by no means a native english speaker, so there surely will remain room for improvement.

I plan on going through all of the docs over a few pull requests, so that a single pull request would not get too big to review.

Note that I am attempting to only fix typos and improve the general language, not change what is said in the docs.

What changes does this PR make to fix the problem?

Fix typos and improve the language in:

  • README.md
  • CONTRIBUTING.md
  • The introduction page
  • All of the hooks in the State category
Created at 1 week ago

fix(useMeasure): only expose with and height properties (#954)

Only the width and height of the observed elements content rect are now exposed because the other properties were not considered relevant for this hook. In addition they introduced potential footguns. See #954 for more.

BREAKING CHANGE: Only width and height are now exposed from the element instead of the whole DOMRect #951

chore(release): 19.0.0 [skip ci]

19.0.0 (2022-11-12)

Bug Fixes

  • useMeasure: only expose with and height properties (#954) (161c18d), closes #951

BREAKING CHANGES

  • useMeasure: Only width and height are now exposed from the element instead of the whole DOMRect

feat(useStorageValue): add custom parse and stringify functions to options (#913)

  • feat(useStorageValue): add custom parse and stringify functions to options

Co-authored-by: Arttu Olli 60509537+ArttuOll@users.noreply.github.com

chore(release): 19.1.0 [skip ci]

19.1.0 (2022-11-12)

Features

  • useStorageValue: add custom parse and stringify functions to options (#913) (095d371)

docs(contributor): contrib-readme-action has updated readme

chore(deps-dev): bump @types/jest from 29.2.2 to 29.2.3 (#1018)

Bumps @types/jest from 29.2.2 to 29.2.3.


updated-dependencies:

  • dependency-name: "@types/jest" dependency-type: direct:development 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>

feat: implement useRenderCount hook (#990)

chore(release): 19.2.0 [skip ci]

19.2.0 (2022-11-20)

Features

docs(README.md): Fix typos and improve language

Fixed typos and grammatical errors without editorialising the content.

docs(Introduction.story.mdx): Fix typos and improve language

docs(useAsync): Fix typos and improve language

docs(useAsyncAbortable): Fix typos and improve language

docs(useCookieValue): Fix typos and improve language

docs(CONTRIBUTING.md): Fix typos and improve language

docs(useLocalStorageValue): Fix typos and improve language

docs(useSessionStorage): Fix typos and improve language

docs(README, CONTRIBUTING, introduction & state hooks docs): Address review feedback

Created at 1 week ago
issue comment
feat: implement `useRenderCount` hook

:tada: This PR is included in version 19.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Created at 1 week ago
issue comment
bump @types/jest from 29.2.2 to 29.2.3

:tada: This PR is included in version 19.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Created at 1 week ago

feat: implement useRenderCount hook (#990)

Created at 1 week ago
pull request closed
feat: implement `useRenderCount` hook

What new hook does?

useRendersCount tracks component's renders count including the first render.

#33

Checklist

  • [X] Have you read contribution guideline?
  • [X] Have the files been linted and formatted?
  • [X] Have the docs been updated?
  • [X] Have the tests been added to cover new hook?
  • [X] Have you run the tests locally to confirm they pass?
Created at 1 week ago
build(deps): bump eslint from 8.25.0 to 8.26.0

:tada: This PR is included in version 1.7.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Created at 1 week ago