Calamari
Repos
111
Followers
45
Following
16

An JavaScript implementation of Behavior Trees.

295
43

The shunting yard algorithm transforms a mathematical expression from infix notation into a reversed polish notation (postfix).

22
3

Parses every stack trace into a nicely formatted array of hashes.

90
12

A Tetris implementation in Elixir.

0
0

A remake of the famous space invaders.

The only Datetime picker you need, written in and for react

Events

Getting (FunctionClauseError) no function clause matching in Phoenix.Token.get_key_base/1 with LiveSockets

I am not quite sure if that really belongs here, or if that is a Phoenix LiveView topic and user sessions have to be handled differently with liveviews, but I observed this:

Environment

  • Elixir version (elixir -v): 1.14.3
  • Phoenix version (mix deps): 1.7.0-rc.2
  • Operating system: Linux/Ubuntu

Expected behavior

As I would with a normal socket connection I am doing

Phoenix.Token.verify(socket, "user socket", user_token, max_age: 1_209_600)

which should return the ID of the user signed in, which was previously set with

user_token = Phoenix.Token.sign(conn, "user socket", current_user.id)

Actual behavior

When I am calling the verify/4 method I get the following error:

** (FunctionClauseError) no function clause matching in Phoenix.Token.get_key_base/1`
    (phoenix 1.7.0-rc.2) lib/phoenix/token.ex:235: Phoenix.Token.get_key_base(#Phoenix.LiveView.Socket<id: "phx-Fz8Rw5hsz2XacGIG", endpoint: MyApp.Endpoint, view: MyApp.ResumeLive.Show, parent_pid: nil, root_pid: #PID<0.5597.0>, router: MyApp.Router, assigns: %{__changed__: %{}, flash: %{}, live_action: :show}, transport_pid: #PID<0.5589.0>, ...>)
    (phoenix 1.7.0-rc.2) lib/phoenix/token.ex:207: Phoenix.Token.verify/4
…

Remarks I found

What I figured is, that this line: https://github.com/phoenixframework/phoenix/blob/v1.7.0-rc.2/lib/phoenix/token.ex#L238

might be too restrictive, since it matches against a Phoenix.Socket module, but in my case it receives a Phoenix.LiveView.Socket. Which probably also should work. Or am I mistaken?

Created at 3 days ago
Calamari delete branch fix-typo
Created at 6 days ago
pull request opened
Fix typo in Filter.Mixin module docs

Just found a small typo, you might to wanted to have fixed :-)

Created at 6 days ago

Fix typo in Filter.Mixin module docs

Created at 6 days ago
Calamari create branch fix-typo
Created at 6 days ago
issue comment
Typescript them all

@Tresky Thanks, very much for trying it out. You are right, during the publishing step, all files except those mentioned have been omitted. :facepalm:

But it should work now with the next beta release: behaviortree@3.0.0-beta.1 Sorry, for that.

Created at 1 week ago
Created at 3 weeks ago

Bump set-value and union-value

Bumps set-value and union-value. These dependencies needed to be updated together.

Updates set-value from 2.0.0 to 2.0.1

Updates union-value from 1.0.0 to 1.0.1


updated-dependencies:

  • dependency-name: set-value dependency-type: indirect
  • dependency-name: union-value dependency-type: indirect ...

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

Created at 3 weeks ago
pull request closed
Bump set-value and union-value

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps set-value and union-value. These dependencies needed to be updated together. Updates set-value from 2.0.0 to 2.0.1

Updates union-value from 1.0.0 to 1.0.1

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)
  • @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.

Created at 3 weeks ago

Bump got and tsd

Removes got. It's no longer used after updating ancestor dependency tsd. These dependencies need to be updated together.

Removes got

Updates tsd from 0.7.4 to 0.25.0


updated-dependencies:

  • dependency-name: got dependency-type: indirect
  • dependency-name: tsd dependency-type: direct:development ...

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

Created at 3 weeks ago
pull request closed
Bump got and tsd

Removes got. It's no longer used after updating ancestor dependency tsd. These dependencies need to be updated together.

Removes got

Updates tsd from 0.7.4 to 0.25.0

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)
  • @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.

Created at 3 weeks ago

Bump json5 from 1.0.1 to 1.0.2

Bumps json5 from 1.0.1 to 1.0.2.


updated-dependencies:

  • dependency-name: json5 dependency-type: indirect ...

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

Created at 3 weeks ago
pull request closed
Bump json5 from 1.0.1 to 1.0.2

Bumps json5 from 1.0.1 to 1.0.2.

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)
  • @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.

Created at 3 weeks ago

Bump flat and mocha

Bumps flat to 5.0.2 and updates ancestor dependency mocha. These dependencies need to be updated together.

Updates flat from 4.1.0 to 5.0.2

Updates mocha from 6.2.2 to 10.2.0


updated-dependencies:

  • dependency-name: flat dependency-type: indirect
  • dependency-name: mocha dependency-type: direct:development ...

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

Merge pull request #7 from Calamari/dependabot/npm_and_yarn/flat-and-mocha-5.0.2

Bump flat and mocha

Created at 1 month ago
pull request closed
Bump flat and mocha

Bumps flat to 5.0.2 and updates ancestor dependency mocha. These dependencies need to be updated together.

Updates flat from 4.1.0 to 5.0.2

Updates mocha from 6.2.2 to 10.2.0

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)
  • @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.

Created at 1 month ago
Calamari delete branch dependabot/npm_and_yarn/minimatch-3.1.2
Created at 1 month ago

Bump minimatch from 3.0.4 to 3.1.2

Bumps minimatch from 3.0.4 to 3.1.2.


updated-dependencies:

  • dependency-name: minimatch dependency-type: indirect ...

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

Created at 1 month ago
pull request closed
Bump minimatch from 3.0.4 to 3.1.2

Bumps minimatch from 3.0.4 to 3.1.2.

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)
  • @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.

Created at 1 month ago
delete branch
Calamari delete branch dependabot/npm_and_yarn/json5-and-jest-2.2.3
Created at 1 month ago

Bump json5 and jest

Bumps json5 to 2.2.3 and updates ancestor dependency jest. These dependencies need to be updated together.

Updates json5 from 2.2.0 to 2.2.3

Updates jest from 22.4.4 to 29.3.1


updated-dependencies:

  • dependency-name: json5 dependency-type: indirect
  • dependency-name: jest dependency-type: direct:development ...

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

Created at 1 month ago
pull request closed
Bump json5 and jest

Bumps json5 to 2.2.3 and updates ancestor dependency jest. These dependencies need to be updated together.

Updates json5 from 2.2.0 to 2.2.3

Updates jest from 22.4.4 to 29.3.1

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)
  • @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.

Created at 1 month ago

Bump json5, jest and webpack

Bumps json5 to 2.2.2 and updates ancestor dependencies json5, jest and webpack. These dependencies need to be updated together.

Updates json5 from 2.2.0 to 2.2.2

Updates jest from 22.4.4 to 29.3.1

Updates webpack from 3.12.0 to 5.75.0


updated-dependencies:

  • dependency-name: json5 dependency-type: indirect
  • dependency-name: jest dependency-type: direct:development
  • dependency-name: webpack dependency-type: direct:development ...

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

Created at 1 month ago
pull request closed
Bump json5, jest and webpack

Bumps json5 to 2.2.2 and updates ancestor dependencies json5, jest and webpack. These dependencies need to be updated together.

Updates json5 from 2.2.0 to 2.2.2

Updates jest from 22.4.4 to 29.3.1

Updates webpack from 3.12.0 to 5.75.0

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)
  • @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.

Created at 1 month ago

Bump flat and mocha

Bumps flat to 5.0.2 and updates ancestor dependency mocha. These dependencies need to be updated together.

Updates flat from 4.1.0 to 5.0.2

Updates mocha from 6.2.3 to 10.2.0


updated-dependencies:

  • dependency-name: flat dependency-type: indirect
  • dependency-name: mocha dependency-type: direct:development ...

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

Created at 1 month ago
pull request closed
Bump flat and mocha

Bumps flat to 5.0.2 and updates ancestor dependency mocha. These dependencies need to be updated together.

Updates flat from 4.1.0 to 5.0.2

Updates mocha from 6.2.3 to 10.2.0

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)
  • @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.

Created at 1 month ago

Add new beginner course

Add convenient makefile

Created at 1 month ago
issue comment
Typescript them all

So I added the parallel branch stuff and this into one release: behaviortree@3.0.0-beta.0

It should be published by now.

Created at 1 month ago

Fix specs and build dependencies

Make BranchNode remember last run

Make decorators work with new running response

Use new helper method more

Add Parallel node

Add Parallel* nodes

Adapt Random node to new inner workings

Clean up import statements

Upgrade node packages

Fix introspector call in BranchNode

Remove console.logs

Add introspector for parallel tasks

Fix CooldownDecorator for running tasks

Tasks should not start the timer as long as they are running.

Add new accomplishments to README

Small cleanup

Created at 1 month ago
issue comment
Typescript them all

Hello @Telokis. It is still maintained. I just didn't came around to fully test the TypeScript version to my hearts content. And I don't want to release a version that is broken for some people. But I probably can but it out later as a release candidate. :+1: If you like to play with it, I am happy to do that. You are the first one to ask for a TypeScript version :)

Created at 1 month ago