Skip to content

Commit

Permalink
Merge branch 'AnswerDotAI:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nickossdev authored Aug 22, 2024
2 parents ccca293 + f5489f9 commit 1dc976f
Show file tree
Hide file tree
Showing 62 changed files with 5,435 additions and 1,968 deletions.
8 changes: 8 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See: https://github.com/codespell-project/codespell#using-a-config-file
[codespell]
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
ignore-words-list = convertor,convertors,noo,socio-economic
# If a file has many false positives, exclude here:
skip = ./.git
# To exclude base64 encoded strings, ignore all long base64 compatible strings
ignore-regex = [A-Za-z0-9+/]{1000,}
47 changes: 47 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Bug Report
about: Report a bug to help us improve
title: '[BUG] '
labels: bug
assignees: ''

---

**Important Notice**
We do not provide support through GitHub issues. For community-based help, please use either:
- GitHub Discussions tab
- Our [Discord channel](https://discord.gg/qcXvcxMhdP)

If you're reporting a bug, please continue with this template.

**Describe the bug**
A clear and concise description of what the bug is.

**Minimal Reproducible Example**
Provide a minimal code snippet that reproduces the issue. This is crucial for us to understand and fix the bug quickly.

```python
# Your code here
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Environment Information**
Please provide the following version information:
- fastlite version:
- fastcore version:
- fasthtml version:

**Confirmation**
Please confirm the following:
- [ ] I have read the FAQ (https://docs.fastht.ml/explains/faq.html)
- [ ] I have provided a minimal reproducible example
- [ ] I have included the versions of fastlite, fastcore, and fasthtml
- [ ] I understand that this is a volunteer open source project with no commercial support.

**Additional context**
Add any other context about the problem here.

**Screenshots**
If applicable, add screenshots to help explain your problem.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Start a discussion
url: https://github.com/AnswerDotAI/fasthtml/discussions
about: You can ask for help here!
- name: Join our Discord
url: https://discord.gg/qcXvcxMhdP
about: Join our community on Discord!
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Feature Request
about: Suggest an idea for this project
title: '[FEATURE] '
labels: enhancement
assignees: ''

---

If you'd like to discuss your feature idea first with the community (highly recommended!) please visit our [Discord channel](https://discord.gg/qcXvcxMhdP).

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Example code**
Provide an example of how you imagine the feature working:

```python
# Your example code here
```

**Similar implementations**
If available, provide links to similar features in other libraries:
1. [Library Name](link-to-feature)
2. [Another Library](another-link-to-feature)

**Problem solved**
Explain what problem this feature would solve and how it would benefit users of the library:

**Additional context**
Add any other context or screenshots about the feature request here.

**Confirmation**
Please confirm the following:
- [ ] I have checked the existing issues and pull requests to ensure this feature hasn't been requested before.
- [ ] I have read the project's documentation to ensure this feature doesn't already exist.

32 changes: 32 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Pull Request
about: Propose changes to the codebase
title: '[PR] '
labels: ''
assignees: ''

---

**Related Issue**
Please link to the issue that this pull request addresses. If there isn't one, please create an issue first.

**Proposed Changes**
Describe the big picture of your changes here. If it fixes a bug or resolves a feature request, be sure to link to that issue.

**Types of changes**
What types of changes does your code introduce? Put an `x` in all the boxes that apply:
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

**Checklist**
Go over all the following points, and put an `x` in all the boxes that apply:
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] I am aware that this is an nbdev project, and I have edited, cleaned, and synced the source notebooks instead of editing .py or .md files directly.

**Additional Information**
Any additional information, configuration or data that might be necessary to reproduce the issue.
File renamed without changes.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
posts/
.quarto
.sesskey
*.db-*
Expand Down
167 changes: 166 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,171 @@

<!-- do not remove -->

## 0.4.4

### New Features

- Replace `__call__` with `rt` in handler functions ([#334](https://github.com/AnswerDotAI/fasthtml/issues/334))
- Add `flat_tuple` and use it to allow nested tuples in route responses
- Add `body` parameter for decoded body
- Move pico-specific components to separate module ([#327](https://github.com/AnswerDotAI/fasthtml/issues/327))
- Add "get" and "post" as default methods on routes ([#317](https://github.com/AnswerDotAI/fasthtml/issues/317))
- Support Reverse URL lookups by exposing `url_for` ([#189](https://github.com/AnswerDotAI/fasthtml/issues/189))


## 0.4.3

### New Features

- Fastlite 0.0.9 dep


## 0.4.2

### New Features

- Rename `Checkbox` to `CheckboxX` ([#314](https://github.com/AnswerDotAI/fasthtml/issues/314))
- CheckboxX also adds a hidden field before the checkbox
- Automatically choose last field in form data if list provided by non-list parameter


## 0.4.1

### Bugs Squashed

- post release fix for `fill_form` ([#309](https://github.com/AnswerDotAI/fasthtml/issues/309))


## 0.4.0

### Breaking changes

- `__init.py__` now only contains `fasthtml.core`

### New Features

- Fastcore 1.7 compatibility ([#307](https://github.com/AnswerDotAI/fasthtml/issues/307))
- Add `fasthtml.basics` for importing the main fasthtml modules


## 0.3.7

### New Features

- Add `reload_includes` and `reload_excludes` options to serve ([#291](https://github.com/AnswerDotAI/fasthtml/pull/291)), thanks to [@pydanny](https://github.com/pydanny)

### Bugs Squashed

- katex.js missing ([#305](https://github.com/AnswerDotAI/fasthtml/issues/305))


## 0.3.6

### Bugs Squashed

- postrelease fix markdown js ([#290](https://github.com/AnswerDotAI/fasthtml/issues/290))


## 0.3.5

### New Features

- Support `dict` value in `hx_vals` ([#288](https://github.com/AnswerDotAI/fasthtml/issues/288))
- Add `sess_cls` param to `FastHTML` ([#284](https://github.com/AnswerDotAI/fasthtml/issues/284))
- Make `index` a special handler name for path "/" get request ([#274](https://github.com/AnswerDotAI/fasthtml/issues/274))
- Use `run_in_threadpool` for non-async handlers ([#270](https://github.com/AnswerDotAI/fasthtml/issues/270))
- Enhance LaTeX rendering in Markdown with support for environments ([#269](https://github.com/AnswerDotAI/fasthtml/pull/269)), thanks to [@rian-dolphin](https://github.com/rian-dolphin)

### Bugs Squashed

- Duplicate parameters in components.pyi ([#255](https://github.com/AnswerDotAI/fasthtml/issues/255))


## 0.3.4

### New Features

- Experimental new named-based HTMX routing system ([#267](https://github.com/AnswerDotAI/fasthtml/issues/267))
- `uri` function to construct `url_for` path params
- patch `HTTPConnection.url_path_for`
- replace HTTP verb FT attr names with `hx-` prefixed versions, and look up values in route names (with `link` used for `href` attrs)
- Default route paths to `/{func.__name__}`
- Default route method to `post` if func name isn't an http verb
- Support skipping `()` in route decorators


## 0.3.3

### New Features

- Default route name to function name if method provided ([#263](https://github.com/AnswerDotAI/fasthtml/issues/263))
- `surreal` and `htmx` bool params for `FastHTML` and `fast_app` ([#258](https://github.com/AnswerDotAI/fasthtml/issues/258))


## 0.3.2

### New Features

- generic list annotated params double-wrapped ([#253](https://github.com/AnswerDotAI/fasthtml/issues/253))
- Add `Prev()` ([#253](https://github.com/AnswerDotAI/fasthtml/issues/253))
- `ft_cfg` config defaults ([#251](https://github.com/AnswerDotAI/fasthtml/issues/251))
- Make `fill_form` set selected option ([#185](https://github.com/AnswerDotAI/fasthtml/pull/185)), thanks to [@ostwilkens](https://github.com/ostwilkens)

### Bugs Squashed

- Use re.fullmatch for Beforeware ([#221](https://github.com/AnswerDotAI/fasthtml/pull/221)), thanks to [@justbur](https://github.com/justbur)


## 0.3.0

### Breaking changes

- Do not make session vars available as direct params ([#237](https://github.com/AnswerDotAI/fasthtml/issues/237))

### New Features

- Add surreal.js helpers `Me`, `Any`, `On` ([#238](https://github.com/AnswerDotAI/fasthtml/issues/238))
- Add support for application/json in POST requests ([#234](https://github.com/AnswerDotAI/fasthtml/pull/234)), thanks to [@khoaHyh](https://github.com/khoaHyh)
- Wrap Starlette's session in an AttrDict ([#213](https://github.com/AnswerDotAI/fasthtml/pull/213)), thanks to [@jbellis](https://github.com/jbellis)
- Handle mismatches between existing db and schema ([#202](https://github.com/AnswerDotAI/fasthtml/pull/202)), thanks to [@ncoop57](https://github.com/ncoop57)
- Raise warning if type is not passed ([#195](https://github.com/AnswerDotAI/fasthtml/issues/195))

### Bugs Squashed

- railway deploy doesn't check for project name ([#230](https://github.com/AnswerDotAI/fasthtml/pull/230)), thanks to [@gautam-e](https://github.com/gautam-e)


## 0.2.4

### Bugs Squashed

- Signature may not resolve types from str ([#198](https://github.com/AnswerDotAI/fasthtml/issues/198))


## 0.2.3

### New Features

- Add `attrs1st` formatting to html2ft ([#193](https://github.com/AnswerDotAI/fasthtml/pull/193)), thanks to [@AndrewRPerkins](https://github.com/AndrewRPerkins)


## 0.2.2

### New Features

- Check for railway app version ([#192](https://github.com/AnswerDotAI/fasthtml/issues/192))
- Update `flat_xt` to handle single FT item ([#190](https://github.com/AnswerDotAI/fasthtml/issues/190))
- Support FT in HTTPException handling ([#175](https://github.com/AnswerDotAI/fasthtml/issues/175))
- Add `pep8_app.py` ([#163](https://github.com/AnswerDotAI/fasthtml/issues/163))
- Add support for LaTeX formula rendering when rendering markdown ([#158](https://github.com/AnswerDotAI/fasthtml/pull/158)), thanks to [@yym68686](https://github.com/yym68686)
- Add to request: `req.hdrs,req.ftrs,req.htmlkw,req.bodykw` ([#152](https://github.com/AnswerDotAI/fasthtml/issues/152))
- Add htmlkw to `fast_app` ([#145](https://github.com/AnswerDotAI/fasthtml/pull/145)), thanks to [@ranzuh](https://github.com/ranzuh)
- Add `Form` for multipart form data; initial poetry compatibility for `serve` ([#137](https://github.com/AnswerDotAI/fasthtml/issues/137))
- changes toast names to avoid conflict with bootstrap ([#133](https://github.com/AnswerDotAI/fasthtml/pull/133)), thanks to [@vacmar01](https://github.com/vacmar01)
- Automatically move ('title','meta','link','style','base') into head ([#122](https://github.com/AnswerDotAI/fasthtml/issues/122))
- Allow for `Any` or `FT` as return type of routes ([#112](https://github.com/AnswerDotAI/fasthtml/issues/112))


## 0.2.1


Expand Down Expand Up @@ -33,7 +198,7 @@

### New Features

- Skip redundent formatting in `loose_format` ([#79](https://github.com/AnswerDotAI/fasthtml/issues/79))
- Skip redundant formatting in `loose_format` ([#79](https://github.com/AnswerDotAI/fasthtml/issues/79))
- Add `htmlkw` param to `FastHTML` ([#78](https://github.com/AnswerDotAI/fasthtml/issues/78))


Expand Down
Loading

0 comments on commit 1dc976f

Please sign in to comment.