Skip to content

Commit

Permalink
Merge branch 'main' into new-privacy-rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Dec 29, 2024
2 parents ed185dc + aa049d5 commit 947d10b
Show file tree
Hide file tree
Showing 617 changed files with 21,902 additions and 7,964 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -67,4 +67,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
7 changes: 4 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: End to end codegen

on:
pull_request:
branches: [main]
# disable e2e tests on PRs to the main branch until fixed
branches: [main2]


jobs:
Expand Down Expand Up @@ -49,7 +50,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: '1.22'
check-latest: true
cache: true

Expand All @@ -68,7 +69,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install -g ts-node prettier@3.0.3 typescript@5.0.4 @swc/[email protected].57 @swc/[email protected].62 jest @biomejs/biome@1.0.0
- run: npm install -g ts-node@11.0.0-beta.1 prettier@3.1.0 typescript@5.3.2 @swc/[email protected].100 @swc/[email protected].63 jest @biomejs/biome@1.4.1
- run: |
cd ts
npm ci
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: '1.22'
check-latest: true
cache: true

Expand All @@ -70,11 +70,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm install -g ts-node@10.9.1 prettier typescript@5.0.4 @swc/[email protected].57 @swc/[email protected].62
- run: npm install -g ts-node@11.0.0-beta.1 prettier@3.1.0 typescript@5.3.2 @swc/[email protected].100 @swc/[email protected].63
- run: |
cd ts
npm ci
npm install --save-dev @swc-node/[email protected].5
npm install --save-dev @swc-node/[email protected].8
- name: Setup ripgrep
run: curl -LO https://github.com/BurntSushi/ripgrep/releases/download/13.0.0/ripgrep_13.0.0_amd64.deb && sudo dpkg -i ripgrep_13.0.0_amd64.deb
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/new_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
go-version: '1.22'

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -65,7 +65,7 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
- run: npm test -- --runInBand
env:
POSTGRES_PASSWORD: 'postgres'
POSTGRES_USER: 'postgres'
141 changes: 141 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,147 @@ Changelog for the docker image are [here](/docker_CHANGELOG.md).

## [Unreleased]

## [0.2.0] - 2024-11-17

### Breaking

- make generation of names (database columns, graphql names etc) more consistent (#1757). changes names for the following field types in schemas:
* `userID` field -> `userId` GraphQL field and `userId` TypeScript variable instead of `userID`
* `foo2` field -> `foo2` database column instead of `foo_2` database column
* `userIDs` field -> `userIds` GraphQL field and `userIds` TypeScript variable instead of `userIDs`
* and a few other related changes
* the existing names can be kept by using `storageKey` and `graphqlName` in the schema files so that there doesn't have to be any production impact.
* standardizes on `Id` instead of `ID` so functions like `User.loadIDFromEmailAddress` become `User.loadIdFromEmailAddress`
- changes generated files for patterns to make them more customizable (#1760)

### Added

- join types (#1840)
- disableBase64Encode for uuid types (#1843)
- Adjust edge queries to support multiple sort columns (#1834)
- Allow async edge connections (#1829)
- Add hideFromGraphQL to InverseAssocEdge (#1766)
- change id in default pattern from `ID` to `id` (#1763)
* references to `ID` in say foreign key definitions will have to be updated

### Fixed

- Save polymorphic types in structs (#1852)
- fix CustomClauseQuery in GraphQL ent fields (#1837)
- Allow input objects to have nested input objects (#1795)
- fix transformWrite formatting data incorrectly (#1783)


## [0.2.0-alpha.10] - 2024-11-13

### Fixed

- Save polymorphic types in structs (#1852)

## [0.2.0-alpha.9] - 2024-11-11

### Added

- join types (#1840)
- disableBase64Encode for uuid types (#1843)

## [0.2.0-alpha.8] - 2024-10-07

### Fixed

- fix CustomClauseQuery in GraphQL ent fields (#1837)

## [0.2.0-alpha.7] - 2024-10-01

### Added

- Adjust edge queries to support multiple sort columns (#1834)

## [0.2.0-alpha.6] - 2024-09-05

### Added

- Allow async edge connections (#1829)

## [0.2.0-alpha.5] - 2024-03-09

### Fixed

- Allow input objects to have nested input objects (#1795)

## [0.2.0-alpha.4] - 2024-03-01

### Fixed

- fix transformWrite formatting data incorrectly (#1783)

## [0.2.0-alpha.3] - 2024-02-29

### Added

- Add hideFromGraphQL to InverseAssocEdge (#1766)


## [0.2.0-alpha.2] - 2024-02-23

- change id in default pattern from `ID` to `id` (#1763)
* references to `ID` in say foreign key definitions will have to be updated

## [0.2.0-alpha.1] - 2024-02-22

### Breaking

- make generation of names (database columns, graphql names etc) more consistent (#1757). changes names for the following field types in schemas:
* `userID` field -> `userId` GraphQL field and `userId` TypeScript variable instead of `userID`
* `foo2` field -> `foo2` database column instead of `foo_2` database column
* `userIDs` field -> `userIds` GraphQL field and `userIds` TypeScript variable instead of `userIDs`
* and a few other related changes
* the existing names can be kept by using `storageKey` and `graphqlName` in the schema files so that there doesn't have to be any production impact.
* standardizes on `Id` instead of `ID` so functions like `User.loadIDFromEmailAddress` become `User.loadIdFromEmailAddress`
- changes generated files for patterns to make them more customizable (#1760)


## [0.1.26] - 2024-02-18

### Added

- Add an ability to specify field aliases on a per-field basis (#1753)

## [0.1.25] - 2024-02-11

### Added

- Forward overrideAlias to isNullClause (#1747)

## [0.1.24] - 2024-02-08

### Added

- Add ability to remove alias from order by clause or to specify alias for order by (#1745)

## [0.1.23] - 2024-01-21

### Added

- Validate that we can't have multiple patterns with the same name (#1733)

### Fixed

- fix issue with StructTypeAsList globalType fields during create (#1734)

## [0.1.22] - 2023-12-08

### Added

- add alias to QueryDataOptions (#1714)
- update a bunch of dependencies (#1728)

## [0.1.21] - 2023-10-14

### Added

- ability to configure exports for actions not to be default export (#1689)

## [0.1.20] - 2023-10-08

### Added
Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ See [ent starter](https://github.com/lolopinto/ent-starter) and start by clickin

See [docs](https://ent.dev).

## v0.1 migration
## Releases

To learn more on migrating to the [alpha v0.1](https://ent.dev/docs/migration-v01/migration-guide).
v0.2.0 is currently in beta. Changelogs:

And for old [v0.x docs](https://ent-docs-v0-0-x.onrender.com/).
* [Snowtop](https://github.com/lolopinto/ent/blob/main/CHANGELOG.md)

* [Docker](https://github.com/lolopinto/ent/blob/main/docker_CHANGELOG.md)


For v0.1.x releases, check out the changelogs:

* [Snowtop](https://github.com/lolopinto/ent/blob/v0.1.x/CHANGELOG.md)

* [Docker](https://github.com/lolopinto/ent/blob/v0.1.x/docker_CHANGELOG.md)
120 changes: 120 additions & 0 deletions docker_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,126 @@ Changelog for the npm version are [here](/CHANGELOG.md).

## [Unreleased]

### Added

- Updated error when there's duplicate names in generated GraphQL Schema (#1857)

## [0.2.0-alpha.9] - 2024-11-11

### Fixed

- Fix UUID fields in struct fields (#1843)

## [0.2.0-alpha.8] - 2024-09-05

### Fixed

- Fix invalid generated TS "float" type (#1828)

## [0.2.0-alpha.6] - 2024-06-06

### Added

- add viewer to generated pattern types (#1800)
- add query methods to patterns for fieldEdge and foreignKeys defined in pattern (#1801)
- union type for patterns (#1810)


### Fixed

- stop ignoring actionOnlyFields in edge actions (#1811)


## [0.2.0-alpha.5] - 2024-03-09

### Fixed

- Allow input objects to have nested input objects (#1795)

## [0.2.0-alpha.4] - 2024-03-01

### Fixed

- fix generated date types (#1787)

## [0.2.0-alpha.3] - 2024-03-01

### Fixed

- make it so that fooId UUID fieldEdge works (#1779)
- fix @gqlField with gqlConnection and args with custom types (#1780)

## [0.2.0-alpha.2] - 2024-02-29

### Added

- Add hideFromGraphQL to InverseAssocEdge (#1766)
- Add support for @gqlField with gqlConnection and args (#1768)

### Fixed

- Fix graphql imports for custom files (#1775)
- Fix imports for custom objects in files (#1776)

## [0.2.0-alpha.1] - 2024-02-22

### Breaking

- make generation of names (database columns, graphql names etc) more consistent (#1757). changes names for the following field types in schemas:
* `userID` field -> `userId` GraphQL field and `userId` TypeScript variable instead of `userID`
* `foo2` field -> `foo2` database column instead of `foo_2` database column
* `userIDs` field -> `userIds` GraphQL field and `userIds` TypeScript variable instead of `userIDs`
* and a few other related changes
* the existing names can be kept by using `storageKey` and `graphqlName` in the schema files so that there doesn't have to be any production impact.
* standardizes on `Id` instead of `ID` so functions like `User.loadIDFromEmailAddress` become `User.loadIdFromEmailAddress`
- changes generated files for patterns to make them more customizable (#1760)
- changes enum names with numbers fro FOO_1 to FOO1

## [0.1.17] - 2024-01-21

### Added

- Typescript user-defined type guard functions for patterns (#1735)

## [0.1.16] - 2023-12-09

### Fixed

- changed error message when changing database type to be more descriptive (#1726)
- fix disableBuilderType in UUIDType not respected when defaultValueOnCreate is true and disableUserGraphQLEditable is true (#1727)

## [0.1.15] - 2023-12-08

### Fixed

- Updated swc and ts-node to latest versions. Adds module to generated .swcrc used for graphql codegen (#1717)
- fix EdgeGroup actions sets incorrect ent type in DB (#1719)
- Fix id fields with disable user graphql editable (#1723)

## [0.1.14] - 2023-11-06

### Fixed

- fix #1706. take 2 but with edit actions (#1711)

## [0.1.13] - 2023-11-05

### Fixed

- Fix optional non-nullable field in action not being optional in certain actions (#1708)

## [0.1.12] - 2023-10-30

### Fixed

- Export interfaces and other types generated in mixin builders (#1704)

## [0.1.11] - 2023-10-14

### Added

- ability to configure exports for actions not to be default export (#1689)

## [0.1.10] - 2023-10-08

### Fixed
Expand Down
Loading

0 comments on commit 947d10b

Please sign in to comment.