Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
e969116
fix error with hot module replacement
PatrykWalach Nov 12, 2024
25ba84c
update tests
PatrykWalach Nov 12, 2024
7d4628d
fix cleanup
PatrykWalach Nov 14, 2024
1ddc73b
don't use stale itemCleanupPairRef
PatrykWalach Nov 14, 2024
bdd06db
add comment for guards added in `useEffects`
PatrykWalach Jan 3, 2025
cefeafa
chore: Fix vite-demo type checking (#265)
lanesawyer Nov 13, 2024
c0bc499
update docs and demo slightly (#275)
rbalicki2 Nov 14, 2024
8389393
no need to return data in example
rbalicki2 Nov 14, 2024
4df52ad
update docs some more
rbalicki2 Nov 14, 2024
8a2737c
FetchOptions now have optional `onCompleted` and `onError` callbacks.
rbalicki2 Nov 14, 2024
2ad9fd4
add more to documentation
rbalicki2 Nov 14, 2024
476bde5
reshuffle sidebars
rbalicki2 Nov 14, 2024
80260e5
add docs on conditional fetching
rbalicki2 Nov 14, 2024
d5e419c
add parameters docs
rbalicki2 Nov 14, 2024
f00b5b0
update pagination docs
rbalicki2 Nov 14, 2024
46a5cda
link to moar from quickstart
rbalicki2 Nov 14, 2024
e939e92
update docs
rbalicki2 Nov 14, 2024
156da62
extract repository row into its own component
rbalicki2 Nov 15, 2024
accba6b
simplify newsfeed pagination
rbalicki2 Nov 15, 2024
b336638
add documentatiaon about 3D and isConcreteType fields
rbalicki2 Nov 15, 2024
053b917
oops - things were build using a compiler from the wrong commit
rbalicki2 Nov 15, 2024
5bb6d5c
update docs
rbalicki2 Nov 15, 2024
a14e85e
update workflow
rbalicki2 Nov 15, 2024
2732341
fix: Add noUncheckedIndexAccess to tsconfig (#281)
lanesawyer Nov 15, 2024
a481ba3
log a message when a network response errors out
rbalicki2 Nov 15, 2024
732b85d
adjusts vsCode extension to use npm instead of pnpm (#283)
saminoorsyed Nov 19, 2024
20ded20
update dev workflow doc to reflect VSCode extension setup (#284)
saminoorsyed Nov 19, 2024
b39e4ef
replace std::Error with String (#285)
ch1ffa Nov 22, 2024
e9c9839
update quickstart to note latest main
rbalicki2 Nov 23, 2024
07c645f
do not specify dependency version for @isograph/disposable-types in i…
rbalicki2 Dec 3, 2024
19bc177
v0.3.0
rbalicki2 Dec 3, 2024
f8daaec
remove unused import
rbalicki2 Dec 4, 2024
7cb5bb6
remove unused import
rbalicki2 Dec 4, 2024
7648a87
onComplete takes a parameter (TClientFieldValue aka TResult)
rbalicki2 Dec 4, 2024
8ce4f4e
remove unused imports
rbalicki2 Dec 4, 2024
b767ef8
remove unused import
rbalicki2 Dec 21, 2024
e64c084
remove unused lint suppression
rbalicki2 Dec 23, 2024
9f7300a
add key to newsfeed route item
rbalicki2 Dec 23, 2024
2f61c35
satisfy clippy
rbalicki2 Dec 25, 2024
c0a4086
satisfy clippy pt 2
rbalicki2 Dec 25, 2024
ecfc176
cargo fmt
rbalicki2 Dec 25, 2024
f62a090
Suppress warning in atomic_arena.rs
rbalicki2 Dec 25, 2024
d371028
fix issues with cross and ci
rbalicki2 Dec 25, 2024
583aeb8
Generate schema for `isograph.config.json` (#292)
PatrykWalach Dec 25, 2024
04324f7
Fix `isograph-config-schema` being different in ci (#294)
PatrykWalach Dec 26, 2024
2f79ae1
cache `rust build` with `turbo` (#296)
PatrykWalach Dec 28, 2024
d10bce3
add magic `link` field (#282)
PatrykWalach Dec 28, 2024
d0a28cc
Add kind to normalization ast (#297)
PatrykWalach Dec 28, 2024
ecc7467
no_babel_transform option & change entrypoint iso overloads to return…
PatrykWalach Dec 28, 2024
6a60548
handle network errors in the quickstart
rbalicki2 Dec 30, 2024
804266d
fix a few TS errors in compileTag
rbalicki2 Jan 1, 2025
5c7cc5e
fix formatting in Cargo.toml file
rbalicki2 Jan 1, 2025
87f25cf
extract build-json-schema job into a separate .yml file. We will reus…
rbalicki2 Jan 1, 2025
a04be88
rename isograph_config to build_json_schema
rbalicki2 Jan 1, 2025
f1d9f09
initial scaffolding to generate isograph fixtures
rbalicki2 Jan 1, 2025
bc4e49e
rename job to have shorter name, so that in GitHub CI it looks nice
rbalicki2 Jan 1, 2025
6f46f57
format Cargo.toml files
rbalicki2 Jan 1, 2025
01e0007
ignore DS_Store files
rbalicki2 Jan 2, 2025
490f25c
clarify dev workflow doc
rbalicki2 Jan 3, 2025
469f8f0
fix cleanup
PatrykWalach Nov 14, 2024
a6077e1
don't use stale itemCleanupPairRef
PatrykWalach Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,25 @@ jobs:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- name: Cache turbo
uses: actions/cache@v4
with:
toolchain: 1.75.0
path: .turbo
key: ${{ runner.os }}-turbo-${{ inputs.artifact-name }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-${{ inputs.artifact-name }}-
- uses: pnpm/action-setup@v2
- name: Use Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
target: ${{ inputs.target }}
# more info here:- https://github.com/rust-lang/cargo/issues/13020
Expand All @@ -43,7 +59,7 @@ jobs:
command: install
args: cross
- name: 'Build isograph_cli with cargo (${{inputs.target}})'
run: ${{ inputs.cross && 'cross' || 'cargo' }} build --target ${{ inputs.target }} --release
run: pnpm exec turbo ${{ inputs.cross && 'cross' || 'build' }} -- --target ${{ inputs.target }} --release
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ jobs:
- folder: vite-demo
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.75.0
override: true
target: x86_64-apple-darwin
- name: 'Download cli binary'
uses: actions/download-artifact@v4
with:
Expand All @@ -78,6 +73,12 @@ jobs:
- name: 'Check working directory status'
run: './scripts/check-git-status.sh'

build-json-schema:
name: Build json schema
uses: ./.github/workflows/run-cargo-bin-and-ensure-no-changes.yml
with:
binary: build_json_schema

typecheck-demos:
name: Typecheck and Lint Demos
runs-on: ubuntu-latest
Expand Down Expand Up @@ -181,9 +182,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: Run cargo fmt
Expand All @@ -199,22 +199,29 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: Run cargo test
run: cargo test

build-fixtures:
name: Build fixtures
uses: ./.github/workflows/run-cargo-bin-and-ensure-no-changes.yml
with:
binary: generate_isograph_fixtures

all-checks-passed:
name: All checks passed
runs-on: ubuntu-latest
needs:
[
build-fixtures,
build-js-packages,
build-cli,
build-cli-linux,
build-json-schema,
build-demos,
build-website,
prettier,
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/run-cargo-bin-and-ensure-no-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
workflow_call:
inputs:
binary:
required: true
type: string

jobs:
build-and-run-binary:
name: Run ${{ inputs.binary }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
target: x86_64-unknown-linux-musl
- name: Build ${{ inputs.binary }} with cargo
run: cargo build --bin ${{ inputs.binary }} --target x86_64-unknown-linux-musl --release
- name: Make artifact executable
run: chmod +x ./target/x86_64-unknown-linux-musl/release/${{ inputs.binary }}
- name: Run ${{ inputs.binary }}
run: ./target/x86_64-unknown-linux-musl/release/${{ inputs.binary }}
- name: Check working directory status
run: './scripts/check-git-status.sh'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
**/.next/**
**/next-env.d.ts
**/*.d.ts
**/.DS_Store

# the built binary is downloaded into this folder during CI
artifacts

**/out/**

.turbo
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
**/.docusaurus/**
**/dist/**
**/relay-crates/**
isograph-config-schema.json
78 changes: 63 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["./crates/*"]
resolver = "2"

[workspace.package]
version = "0.2.0"
version = "0.3.0"
edition = "2021"
license = "MIT"

Expand All @@ -22,10 +22,11 @@ notify-debouncer-full = "0.4.0"
pathdiff = "0.2.1"
pretty-duration = "0.1.1"
regex = "1.6.0"
schemars = { version="0.8.11", features=["indexmap1"] }
serde = "1.0.197"
serde_json = "1.0.108"
strum = { version="0.25.0", features=["derive"] }
strum = { version = "0.25.0", features = ["derive"] }
thiserror = "1.0.40"
tokio = { version="1.35.0", features=["full"] }
tokio = { version = "1.35.0", features = ["full"] }
tracing = "0.1"
tracing-subscriber = "0.3"
2 changes: 1 addition & 1 deletion crates/common_lang_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ license = { workspace = true }
[dependencies]
intern = { path = "../../relay-crates/intern" }
string_key_newtype = { path = "../string_key_newtype" }
serde = { workspace = true }
serde = { workspace = true }
Loading