Commit graph

1342 commits

Author SHA1 Message Date
Ryan Morshead
d682407d70
fix append to stale children ref (#807) 2022-09-11 21:35:22 -07:00
Mark
a1ebebd40b
Remove old "missing react hooks" note (#805) 2022-09-02 16:04:03 -07:00
rmorshea
842389f988 version 0.40.0 2022-08-13 20:45:51 -07:00
Mark
b06977a102
Use LXML for html_to_vdom (#795)
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2022-08-13 20:41:59 -07:00
Ryan Morshead
2f0bb98424
Fix: Accidental mutation of old model causes invalid JSON Patch (#802)
* fix #801

accidental mutation of old parent model caused invalid JSON patches

* add build_py to cmdclass

distutils has also been deprecated
2022-08-13 14:06:15 -07:00
dependabot[bot]
f593ee3067
Bump got from 11.8.3 to 11.8.5 in /src/client (#772)
Bumps [got](https://github.com/sindresorhus/got) from 11.8.3 to 11.8.5.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v11.8.3...v11.8.5)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2022-08-09 11:33:53 -07:00
dependabot[bot]
3a0d4591c1
Bump jsdom from 16.3.0 to 16.5.0 in /src/client (#774) 2022-07-18 08:45:00 -07:00
Ryan Morshead
3db38815c7
update error messages (#792) 2022-07-18 01:06:58 -07:00
Ryan Morshead
30732ccbbc
make nox-session reusable workflow (#791)
* make nox-session reusable workflow

* bump sphinx ver

* update job names
2022-07-18 00:59:16 -07:00
Ryan Morshead
27209116c4
use strict equality for text, numeric, and binary types (#790) 2022-07-16 10:20:23 -07:00
Ryan Morshead
7bebc4d01a
Track contexts in hooks as state (#787)
* fix use_context

components which are newly added to the layout after the initial
render do not have access to contexts. we solve this by tracking
life cycle hooks in stack and copying the context providers from
parent to child hooks.

we also change how contexts are implemented - instead of needing
a create_context function which returns a new Context class, we
just return a Context object that constructs a ContextProvider
component. the earlier implementation was too clever and did not
add anything for it.

* add test

* add changelog entry

* fix mypy

* fix tornado dev server

* remove unused func

* improve test

* remove unused method

* fix style issues

* get clever with functions

* fix tests

* update changelog

* get coverage
2022-07-14 16:46:51 -07:00
Ryan Morshead
4500d55280
add asgiref dep + set default timeout on page (#776)
* add asgiref dep + set default timeout on page

* add changelog entry

* Update display.py

* Update config.py
2022-07-01 16:24:21 -07:00
Ryan Morshead
535d74623f
Update pull_request_template.md 2022-06-26 15:04:43 -07:00
Ryan Morshead
a2bd7addd1
test py3.10 (#767) 2022-06-20 23:10:27 -07:00
rmorshea
d5471229df version 0.39.0 2022-06-20 13:17:14 -07:00
Ryan Morshead
8e3b0b14b8
ability to specify version in template + no more exports_default (#765)
* ability to specify react version in template

* fix simple chart example

* changelog + add dynamic default export

* test template versioning
2022-06-18 23:34:22 -07:00
Mark
b0c7f9370b
Change function name in readme example (#750) 2022-06-17 10:25:51 -07:00
Ryan Morshead
d157e101f3
Fix idom.run and more renaming of server to backend (#763)
* fix missed server->backend renaming

* add changelog

* add one more item to pr
2022-06-16 17:56:34 -07:00
Ryan Morshead
009617dc45
fix mimetype issue (#762) 2022-06-16 12:34:51 -07:00
rmorshea
5004ca7f4a use pr template 2022-06-16 12:32:59 -07:00
rmorshea
a97526053b remove accidentally committed temp file 2022-06-14 00:52:01 -07:00
Mark
0177411ddd
Replace changelog CI with greetings (#752)
* replace changelog CI with greetings

* switch to a different CI

* try another CI
2022-05-31 12:10:07 -07:00
Mark
32dfb26d4d
Another Readme Update (#747) 2022-04-28 21:20:42 -07:00
Jim Taysom
fb45e7e963
Update good_conditional_todo_list.py (#745)
* Update good_conditional_todo_list.py

The checkmark was on the wrong list items compared to the more verbose example.

* Update main.py

fixed typo. It was rendering `1 or 10`  instead of `1 of 10`
2022-04-21 22:41:42 -07:00
Ryan Morshead
f25970d167
update docstring 2022-04-18 12:24:36 -07:00
Ryan Morshead
2af7590cb1
Update changelog.rst 2022-04-17 13:55:37 -07:00
rmorshea
e93ae19adc fix docs 2022-04-16 12:47:35 -07:00
Mark
3242da62a9
Readme Overhaul (#705)
* Update readme summary

* minor verbiage changes

* Move supported frameworks to a new line

* plotly-dash

* Reorder plotly to prevent text cutoff

* wordsmithing

* wordsmithing 2

* remove "composing" verbiage

* minor clarification

* Update README.md

Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>

* wordsmithing

* reduced verbosity

* within -> in

* fix hyperlink location

* Remove accidental auto-format

* ecosystem independance shortening

* backed ->  based

* it's always wordsmithing

* shortening some stuff

* split sections

* python framework

* wordsmitherererest

* more human sounding ecosystem indepedence paragraph

* smithy

* requested changes

* more words

Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2022-04-16 12:32:46 -07:00
rmorshea
c7be65eaaa tweak changelog entry 2022-04-16 00:41:43 -07:00
rmorshea
e302f2e17e version 0.38.1 2022-04-15 23:11:54 -07:00
Ryan Morshead
3a313d9d34
add missing file extension (#736)
* add missing file extension

* npm audit fix
2022-04-15 23:06:55 -07:00
rmorshea
9e8e849cc5 version 0.38.0 2022-04-15 20:05:48 -07:00
rmorshea
0bbd2d5a8d version 0.38.0-a4 2022-04-15 20:00:13 -07:00
Ryan Morshead
fb39848577
add use debug value hook (#733)
* add use debug value hook

* changelog entry

* fix tests

* export at top level

* no cover

* fix doctest
2022-04-15 19:57:11 -07:00
rmorshea
ce2e3aee35 version 0.38.0-a3 2022-04-15 00:51:46 -07:00
rmorshea
31317b0252 fix version update script 2022-04-15 00:51:10 -07:00
Ryan Morshead
3e542ac32f
Improve Changelog (#731)
* add dates to changelog entries + enforce changelog entry per PR

* fix ref
2022-04-15 00:44:43 -07:00
Ryan Morshead
5091501b08
make Layout context management async (#730)
* make Layout context management async

* fix LayoutType

* changelog entry
2022-04-15 00:14:34 -07:00
rmorshea
fc8ff68d3e version 0.38.0-a2 2022-04-14 19:44:34 -07:00
Ryan Morshead
7621e379bd
Use "backend" instead of "server" (#726)
* rename server to backend

* rework docs to use backend instead of server

* update import

* add changelog entry

* fix doctree

* fix doc ref

* rename to sections to "using a custom ..."

* move build dir to _client

* improve docstring

* misc doc fixes

- "server" -> "web server"
- "Built-in Backends" -> "Native Backends"
- spelling mistakes

* more minor doc improvements
2022-04-13 09:54:32 -07:00
Ryan Morshead
e43bcc00fe
Implement use_location (#721)
* experiment with bundling

* get starlette and tornado to work

* get sanic and flask to work

still need to rework how modules are accessed

* refine routing + fix bugs

* fix cov

* add use_request back

* remove unused imports

* fix test, not sure why it broke

* handle unsafe user provided paths

* increase default testing timeout

* ignore untyped func

* rework as location object

* fix tornado

* upgrade snowpack

* always poll async

if we poll sync then the server might not ever
get a hold of the event loop. this was causing
a problem for the sanic server in a test

* test traversal_safe_path

* add comment about catch

* remove unused imports

* symlinks are ok in traversal_safe_path

* fix docs

* refine docstring
2022-04-07 19:54:10 -07:00
rmorshea
1d4d942040 sort main first in docs 2022-03-31 13:38:18 -07:00
rmorshea
6708394885 version 0.38.0-a1 2022-03-27 17:48:03 -07:00
Ryan Morshead
f2c1070263
Rework How IDOM Integrates With Servers (#703)
* initial work to move away from run func

* initial work converting to new server interface

* finish up flask conversion

* convert tornado + begin reworking test utils

* remove shared dispatchers and rename to serve module

* misc fixes

* start to switch test suite to playwright

* get basic tests working

* get some tests working

* slight optimization

* misc minor improvements

* fix test_html

* implement test_module

* implement connection context

* fix playwright install in nox

* add minimal docstrings

* remove pytest-playwright

* get suite to run (with failures)

* fix log assertion problems

* misc fixes in order to get reconnect test to work

* expose use_scope instead of use_connection

* fix test common

* fix test_client

* test use_scope

* remove unused imports

* fix live docs

* fix typing issues

* fix rest of tests

* improve coverage

* import protocol from typing extensions

* fix syntax error

* fix docs test

* fix flake8

* test run function

* use selector event loop

* try to fix loop

* only install chromium

* remove unused import

* fix shutdown code

* skip browser tests on windows

* fix coverage + reorg testing utils

* minor logging changes

* fix live docs script

* fix log message

* fix types

* documentation updates

* use dataclasses for options instead of typeddict

* move section

* add note to changelog

* fix missing refs

* fix ref

* fix fastapi alias

* fix tornado redirect

* remove unused imports

* changelog entry

* fix noxfile tag commit msg

* improve changelog entry

* fix typo in old cl entry
2022-03-27 17:42:35 -07:00
rmorshea
ad49f29c65 'version 0.37.2' 2022-03-27 15:59:19 -07:00
rmorshea
99d3792570 remove 0.37.2 section 2022-03-27 15:55:07 -07:00
liberty-rising
a7c4d6c6d7
Bugfix for wss protocol issue. (#716)
* fix typo

* add console log

* change websocket connection

* fix error defaulting to ws protocol

* undo some changes and typecast secure to boolean

* add a console log

* add new console log, remove old one

* add colon to http

* remove console.log

* remove Boolean typecast

* remove console.log statement

* revert build-pkg to older version

* add to changelog

* changelog entry rewrite

Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
2022-03-25 22:18:49 -07:00
Jim Taysom
366470637d
Update running-idom.rst (#710)
The run function does not have a `config` kwarg but instead `server_config`
2022-03-17 11:14:29 -07:00
Ryan Morshead
f96538cfa8
rename proto modules to types (#701)
* rename proto modules to types

* sphinx ignore __all__

* changelog entry

* fix doc issue

not sure why this was not caught earlier
2022-03-05 15:29:33 -08:00
rmorshea
d73b79f655 'version 0.37.1' 2022-03-05 13:23:58 -08:00