profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Andarist/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Mateusz Burzyński Andarist @livechat Wrocław, Poland

Andarist/babel-plugin-annotate-pure-calls 69

This plugins helps with annotating top level functions calls with #__PURE__ comment.

aaronshaf/react-callbag-subject 8

Asynchronous pipelines in React using callbags

aaronshaf/callbag-gamepads 7

Callbag source for connected gamepad inputs

aaronshaf/callbag-animation-frames 5

Callbag listenable source sending DOMHighResTimeStamp at display refresh rate

aaronshaf/callbag-keyboard 3

Callbag source for the keyboard

Andarist/are-hook-inputs-equal 3

A comparator function for previous and current React hook inputs.

aaronshaf/callbag-flatten-iter 2

Callbag operator that flattens iterables

Andarist/babel-check-duplicated-nodes 1

🐠 Babel helper module for transforms authors to check the AST against duplicated nodes.

push eventdavidkpiano/xstate

David Khourshid

commit sha 7c6b7bac61b45c37958543c00163a9888888c963

Enhance tests

view details

David Khourshid

commit sha 42723da6d1fa27ce958fa37db5bb32c1b34d3159

Merge branch 'davidkpiano/model-actions-2' of https://github.com/davidkpiano/xstate into davidkpiano/model-actions-2

view details

push time in 12 hours

push eventdavidkpiano/xstate

David Khourshid

commit sha 659dc121d7a0adaaadd9a291ee7e600ca76861aa

Update packages/core/src/model.ts Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>

view details

push time in 13 hours

issue commentatlassian/changesets

Allow customizing or omitting the 'v' git tag prefix for single package repositories

That might be an acceptable workaround indeed, although I like using a release orchestration tool like changesets precisely so I don't have to do such things myself 😅

jorenbroekema

comment created time in 16 hours

issue openedmattpocock/xstate-codegen

`actions:` must be an array

When defining actions on a transition, if a single inline action is defined – as per the example in the XState documentation – the type definitions cause an error. Wrapping the action in an array works as expected.

// Fails
on: {
  actions: (context, event) => console.log('Fails!');
}

// Works
on: {
  actions: [
    (context, event) => console.log('Works!');
  ]
}

created time in 21 hours

issue commentemotion-js/emotion

importing the CSS helper from @emotion/css instead of @emotion/react seems to not work

Also one other reason I end up with @emotion/css is because I use the CSSInterpolation type to type CSS mixins throughout my app, but that's not exported from @emotion/react, just from @emotion/css. Would be nice if that were exported from the react package too.

osdiab

comment created time in a day

issue commentemotion-js/emotion

importing the CSS helper from @emotion/css instead of @emotion/react seems to not work

@Andarist just doing what the docs told me to! https://emotion.sh/docs/ssr#puppeteer

osdiab

comment created time in a day

Pull request review commentdavidkpiano/xstate

[core] Add actions to model

 type EventCreators<Self> = { };  type ModelCreators<Self> = {-  events: EventCreators<Prop<Self, 'events'>>;+  events?: EventCreators<Prop<Self, 'events'>>;+  actions?: EventCreators<Prop<Self, 'actions'>>;

I added types for actions instead for now, even if they're the same. We can consolidate later, but I feel that they will be different, especially when we add guards, etc.

davidkpiano

comment created time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha c2b9ecd475bccb4f93ca16b8582760d2462d1af7

Add types for actions

view details

push time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha 1aa176b865dde2653020e23b389ad2818585085f

Use getSnapshot() for actors

view details

David Khourshid

commit sha edd0625f9d992851fe45d2679f5ba8214c31d440

Update README.md

view details

Robert Sargent

commit sha d580c1e09fb2d7f776abd41eda49535cf400212f

Remove closing bracket after timeOfDayMachine

view details

David Khourshid

commit sha 3b44be9eb5582a73bb7229c419c7a49a3fe9c9f3

Merge pull request #2296 from robertsargent/patch-1 Remove closing bracket after timeOfDayMachine

view details

David Khourshid

commit sha 23e1a0768e9d9c3695af9bcca09a2d80fc15b388

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha b79d1932c97e22f9528bfef9f85d6e13b32b4f4e

Clean up

view details

David Khourshid

commit sha 7a5232de1c88c2082f29566dfeb8b12c56893c7c

Add deprecation notice

view details

David Khourshid

commit sha 16f8dcdbfd0fbb7876a11a085ba3dea1d2ed2ed9

Add deprecation notice to docs

view details

David Khourshid

commit sha 849ec56c2a9db34e65a30af94e68a7a7a50b4158

Add changeset

view details

David Khourshid

commit sha 162900956f2da80a91cf1a81616d96b5bd37f3bc

Merge branch 'main' into davidkpiano/model-actions-2

view details

David Khourshid

commit sha d98022c10244fff4748cb957113c486c20d528ef

Cleanup

view details

David Khourshid

commit sha fa2fdae2ba55ba3300da76adc31c034d2f1d1873

Update resources.md

view details

David Khourshid

commit sha 9d296d59295964f231a38ea39e79b5f77c4c941b

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

Mike Cunneen

commit sha 8ae54a3acc138352abc6318ac8b76ad87a28073c

Update statenodes.md fix tiny typo.

view details

David Khourshid

commit sha 6c8533846d659c5a633c3050aab120d03dbe6e07

Merge pull request #2301 from cunneen/patch-1 Update statenodes.md

view details

David Khourshid

commit sha 99bdd1a304f3c92ca9ed820d557c2b48763c1de1

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha b256bf3bc1a9ff02f8c81d594f5c9bc691b6e3e5

Add .state to deferred actor for compatibility (deprecated)

view details

David Khourshid

commit sha 3be0918b94ea24074fd63e2697f2c9b72e74d815

Check for state in `actorRef` (@xstate/react)

view details

David Khourshid

commit sha ae2f97e5ba9423c354b626a7ea31eb7a4ab2c487

Add back error to useService()

view details

David Khourshid

commit sha e218f1f2dd12d2ea29a69834060454bfa9add1b6

Add state check to xstate-vue

view details

push time in a day

push eventdavidkpiano/xstate

davidkpiano

commit sha e4a4268491a9d4849a98bafb496b4292d1caa7be

Deploying to gh-pages from @ davidkpiano/xstate@507f2449837dcffd25b87ed229ada5787fb74bff 🚀

view details

push time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha 1aa176b865dde2653020e23b389ad2818585085f

Use getSnapshot() for actors

view details

David Khourshid

commit sha 23e1a0768e9d9c3695af9bcca09a2d80fc15b388

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha b79d1932c97e22f9528bfef9f85d6e13b32b4f4e

Clean up

view details

David Khourshid

commit sha 7a5232de1c88c2082f29566dfeb8b12c56893c7c

Add deprecation notice

view details

David Khourshid

commit sha 16f8dcdbfd0fbb7876a11a085ba3dea1d2ed2ed9

Add deprecation notice to docs

view details

David Khourshid

commit sha 849ec56c2a9db34e65a30af94e68a7a7a50b4158

Add changeset

view details

David Khourshid

commit sha 9d296d59295964f231a38ea39e79b5f77c4c941b

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha 99bdd1a304f3c92ca9ed820d557c2b48763c1de1

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha b256bf3bc1a9ff02f8c81d594f5c9bc691b6e3e5

Add .state to deferred actor for compatibility (deprecated)

view details

David Khourshid

commit sha 3be0918b94ea24074fd63e2697f2c9b72e74d815

Check for state in `actorRef` (@xstate/react)

view details

David Khourshid

commit sha ae2f97e5ba9423c354b626a7ea31eb7a4ab2c487

Add back error to useService()

view details

David Khourshid

commit sha e218f1f2dd12d2ea29a69834060454bfa9add1b6

Add state check to xstate-vue

view details

David Khourshid

commit sha a0deb5e540af9de890b2e9c0e4dc96b34fb6eb12

Unskip

view details

David Khourshid

commit sha 507f2449837dcffd25b87ed229ada5787fb74bff

Merge pull request #2286 from davidkpiano/davidkpiano/deprecate-useservice Deprecate useService()

view details

github-actions[bot]

commit sha b683bd2d224a20b9331995e5e43a11ab3e848dd9

Version Packages

view details

push time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha 1aa176b865dde2653020e23b389ad2818585085f

Use getSnapshot() for actors

view details

David Khourshid

commit sha 23e1a0768e9d9c3695af9bcca09a2d80fc15b388

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha b79d1932c97e22f9528bfef9f85d6e13b32b4f4e

Clean up

view details

David Khourshid

commit sha 7a5232de1c88c2082f29566dfeb8b12c56893c7c

Add deprecation notice

view details

David Khourshid

commit sha 16f8dcdbfd0fbb7876a11a085ba3dea1d2ed2ed9

Add deprecation notice to docs

view details

David Khourshid

commit sha 849ec56c2a9db34e65a30af94e68a7a7a50b4158

Add changeset

view details

David Khourshid

commit sha 9d296d59295964f231a38ea39e79b5f77c4c941b

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha 99bdd1a304f3c92ca9ed820d557c2b48763c1de1

Merge branch 'main' into davidkpiano/deprecate-useservice

view details

David Khourshid

commit sha b256bf3bc1a9ff02f8c81d594f5c9bc691b6e3e5

Add .state to deferred actor for compatibility (deprecated)

view details

David Khourshid

commit sha 3be0918b94ea24074fd63e2697f2c9b72e74d815

Check for state in `actorRef` (@xstate/react)

view details

David Khourshid

commit sha ae2f97e5ba9423c354b626a7ea31eb7a4ab2c487

Add back error to useService()

view details

David Khourshid

commit sha e218f1f2dd12d2ea29a69834060454bfa9add1b6

Add state check to xstate-vue

view details

David Khourshid

commit sha a0deb5e540af9de890b2e9c0e4dc96b34fb6eb12

Unskip

view details

David Khourshid

commit sha 507f2449837dcffd25b87ed229ada5787fb74bff

Merge pull request #2286 from davidkpiano/davidkpiano/deprecate-useservice Deprecate useService()

view details

push time in a day

PR merged davidkpiano/xstate

Deprecate useService()

With .getSnapshot(), the useService() hooks are virtually the same as useActor().

+104 -14

1 comment

8 changed files

davidkpiano

pr closed time in a day

Pull request review commentdavidkpiano/xstate

Deprecate useService()

 describe('useService hook', () => {     expect(countEl.textContent).toBe('1');   }); -  it('should throw if provided an actor instead of a service', (done) => {+  it.skip('should throw if provided an actor instead of a service', (done) => {

Unskipped

davidkpiano

comment created time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha a0deb5e540af9de890b2e9c0e4dc96b34fb6eb12

Unskip

view details

push time in a day

Pull request review commentdavidkpiano/xstate

[core] Spawn/invoke behaviors

 export type InterpreterFrom< >   ? Interpreter<TContext, TStateSchema, TEvent, TTypestate>   : never;++export interface ActorContext<TEvent extends EventObject, TEmitted> {

Reference: https://doc.akka.io/japi/akka/current/akka/actor/ActorContext.html

My opinion: I'm fine with calling it ActorContext in the code but referring to it in the documentation just as an object, e.g.:

You can access the parent from the 3rd argument:

const transition = (state, event, { parent }) => {
  // ...
};
davidkpiano

comment created time in a day

pull request commentmattpocock/xstate-codegen

Bump striptags from 3.1.1 to 3.2.0

⚠️ No Changeset found

Latest commit: d27aab626a72b29c74b6eed38de0f4c3289c4504

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

<details><summary>This PR includes no changesets</summary>

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

</details>

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

dependabot[bot]

comment created time in a day

PR opened mattpocock/xstate-codegen

Bump striptags from 3.1.1 to 3.2.0

Bumps striptags from 3.1.1 to 3.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ericnorris/striptags/releases">striptags's releases</a>.</em></p> <blockquote> <h2>v3.2.0</h2> <p>This release fixes a potential <em>type confusion</em> vulnerability when passing in a non-string argument to the function.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/ericnorris/striptags/commit/f252a6b0819499cd65403707ebaf5cc925f2faca"><code>f252a6b</code></a> Merge pull request from GHSA-qxg5-2qff-p49r</li> <li><a href="https://github.com/ericnorris/striptags/commit/27195157aa2a6b1fabfb882c36a8a6eb9201f029"><code>2719515</code></a> fix: throw TypeError if 'html' is non-string argument</li> <li><a href="https://github.com/ericnorris/striptags/commit/27a5dd9041ce9c8d02d1583be8bedd5376edbc75"><code>27a5dd9</code></a> Update README.md example output</li> <li>See full diff in <a href="https://github.com/ericnorris/striptags/compare/v3.1.1...v3.2.0">compare view</a></li> </ul> </details> <br />

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.


<details> <summary>Dependabot commands and options</summary> <br />

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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

</details>

+3 -3

0 comment

1 changed file

pr created time in a day

startedAndarist/react-textarea-autosize

started time in a day

Pull request review commentdavidkpiano/xstate

[core] Spawn/invoke behaviors

+import { ActorRef, Behavior, EventObject, Observer } from '.';+import { toActorRef } from './Actor';+import { toEventObject, toObserver } from './utils';++/**+ * Returns an actor behavior from a reducer and its initial state.+ *+ * @param transition The pure reducer that returns the next state given the current state and event.+ * @param initialState The initial state of the reducer.+ * @returns An actor behavior+ */+export function fromReducer<TState, TEvent extends EventObject>(+  transition: (state: TState, event: TEvent) => TState,+  initialState: TState+): Behavior<TEvent, TState> {+  return {+    transition,+    initialState+  };+}++interface SpawnBehaviorOptions {+  id?: string;+  parent?: ActorRef<any>;+}++export function spawnBehavior<TActorEvent extends EventObject, TEmitted>(+  behavior: Behavior<TActorEvent, TEmitted>,+  options: SpawnBehaviorOptions = {}+): ActorRef<TActorEvent, TEmitted> {+  let state = behavior.initialState;+  const observers = new Set<Observer<TEmitted>>();++  const actor = toActorRef({+    id: options.id,+    send: (event: TActorEvent) => {+      const eventObject = toEventObject(event);

bf1e33a11a19871286f2a937c0028d33e3e5801d

davidkpiano

comment created time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha bf1e33a11a19871286f2a937c0028d33e3e5801d

Remove redundant toEventObject

view details

push time in a day

Pull request review commentdavidkpiano/xstate

[core] Spawn/invoke behaviors

 describe('invoke', () => {     });   }); +  describe('with behaviors', () => {

Done here: c30c0386cd87aa9ff7d73cbe2da703a9b3d5b5cd

davidkpiano

comment created time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha c30c0386cd87aa9ff7d73cbe2da703a9b3d5b5cd

Add tests for spawning behaviors

view details

push time in a day

push eventlivechat/identity-provider-example

Maciej Walaszczyk

commit sha f2d676133694294a1992479080f7e0dc3f7fc622

update README

view details

push time in a day

startedssb-ngi-pointer/ssb-network-errors

started time in a day

created repositoryssb-ngi-pointer/ssb-network-errors

Detect various muxrpc and network errors between SSB peers

created time in a day

push eventdavidkpiano/xstate

David Khourshid

commit sha c2099080ce596ac6fc7c17522c346306d89cacb1

Remove `SpawnedActorRef`

view details

David Khourshid

commit sha 207db544f37c8e25a7b3ef4e1c9b1871e2c6d9d6

Rename TActorEvent -> TEvent

view details

David Khourshid

commit sha 95ac1da5b4d102fdd75127f7ecfdc16201311a10

Fix missing type

view details

push time in 2 days

Pull request review commentdavidkpiano/xstate

[core] Spawn/invoke behaviors

 export type InterpreterFrom< >   ? Interpreter<TContext, TStateSchema, TEvent, TTypestate>   : never;++export interface ActorContext<TEvent extends EventObject, TEmitted> {+  parent?: ActorRef<any, any>;+  self: ActorRef<TEvent, TEmitted>;+}++export type LifecycleSignal =+  | {+      type: 'xstate.start';+    }+  | { type: 'xstate.stop' };++export interface Behavior<TEvent extends EventObject, TEmitted = any> {+  transition: (+    state: TEmitted,+    event: TEvent | LifecycleSignal,+    actorCtx: ActorContext<TEvent, TEmitted>+  ) => TEmitted;

Will have to think about this. The simplest approach is that the actions are in the state (just like in a machine), but then we need to tell whatever is interpreting the behavior that those actions should be executed 🤔

davidkpiano

comment created time in 2 days

Pull request review commentdavidkpiano/xstate

[core] Spawn/invoke behaviors

 export type InterpreterFrom< >   ? Interpreter<TContext, TStateSchema, TEvent, TTypestate>   : never;++export interface ActorContext<TEvent extends EventObject, TEmitted> {

I can't think of a better name - context is what's used by Akka

davidkpiano

comment created time in 2 days