Update package templates for the next shiny-bindings release

Open Beginner friendly
#2,640 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
node.js, python, react, typescript

Research direction

Once both shiny-bindings packages are live on npm, read the three package.json files under shiny/templates/package and check the corresponding srcts/ directories. Update the pinned package versions and verify each template builds against the new API, paying particular attention to output callbacks accepting T | null. Done means all three templates use the released versions and build successfully.

Written by the indexing model from the issue text.

Description

Follow-up to the next release of @posit-dev/shiny-bindings-core and @posit-dev/shiny-bindings-react (posit-dev/shiny-bindings#13). Do this once both versions are live on npm.

The shiny create package templates pin old versions. Before 1.0 a caret range only allows patch updates, so they won't pick up a minor release on their own.

  • shiny/templates/package/js-input/package.json: core is ^0.0.3. Raise it to the new version.
  • shiny/templates/package/js-output/package.json: core is ^0.1.0. Raise it to the new version.
  • shiny/templates/package/js-react/package.json: react is ^0.1.0. Raise it to the new version. React is pinned to ^18.2.0; shiny-bindings-react now also supports React 19, so the template can move up.
  • Check that srcts/ in each template still builds against the new API. Output callbacks get T | null (already handled in posit-dev/py-shiny#2618 and posit-dev/py-shiny#2629).

The new React features (props from data-* attributes, server-rendered children, initialValue as a function) are optional and need no template change. See the shiny-bindings news.

Dominant language
Python
Stars
1.8k
Forks
144
Avg merge
4d 4h
Merged PRs (30d)
18

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from posit-dev/py-shiny

All issues in posit-dev/py-shiny

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.