Skip to content

Commit

Permalink
chore(version): 1.0.0
Browse files Browse the repository at this point in the history
The first release of Celest V1!
  • Loading branch information
dnys1 committed Oct 14, 2024
1 parent 83e2240 commit b610162
Show file tree
Hide file tree
Showing 30 changed files with 262 additions and 80 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/celest_cloud_auth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: celest_cloud_auth
on:
pull_request:
paths:
- ".github/workflows/celest_cloud_auth.yaml"
- "services/celest_cloud_auth/**"

# Prevent duplicate runs due to Graphite
# https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}}
cancel-in-progress: true

jobs:
analyze_and_format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # 2.16.0
with:
cache: true
- name: Setup Melos
run: dart pub global activate melos
- name: Get Packages
run: melos bootstrap
- name: Analyze
working-directory: packages/celest_cloud_auth
run: dart analyze
- name: Format
working-directory: packages/celest_cloud_auth
run: dart format --set-exit-if-changed .
test:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Git Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Flutter
uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 # 2.16.0
with:
cache: true
- name: Setup Melos
run: dart pub global activate melos
- name: Get Packages
run: melos bootstrap
- name: Test
working-directory: packages/celest_cloud_auth
run: dart test
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,17 @@ You have now set up your Celest project and integrated it into your Flutter app.
| Package | Description | Pub | Checks |
| -------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [celest](packages/celest/) | The main package for defining Celest backends. | <a href="https://pub.dev/packages/celest" target="_blank"> <img src="https://img.shields.io/pub/v/celest.svg"></a> | [![Celest](https://github.com/celest-dev/celest/actions/workflows/celest.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest.yaml) |
| [celest_ast](packages/celest_ast/) | A structured representation of Celest projects. | <a href="https://pub.dev/packages/celest_ast" target="_blank"> <img src="https://img.shields.io/pub/v/celest_ast.svg"></a> | [![Celest AST](https://github.com/celest-dev/celest/actions/workflows/celest_ast.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest_ast.yaml) |
| [celest_ast](packages/celest_ast/) | A structured representation of Celest projects. | <a href="https://pub.dev/packages/celest_ast" target="_blank"> <img src="https://img.shields.io/pub/v/celest_ast.svg"></a> | [![Celest AST](https://github.com/celest-dev/celest/actions/workflows/celest_ast.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest_ast.yaml) |
| [celest_auth](packages/celest_auth/) | The authentication and authorization runtimes for Celest. | <a href="https://pub.dev/packages/celest_auth" target="_blank"> <img src="https://img.shields.io/pub/v/celest_auth.svg"></a> | [![Celest Auth](https://github.com/celest-dev/celest/actions/workflows/celest_auth.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest_auth.yaml) |
| [celest_cloud](packages/celest_cloud/) | API contracts and Dart clients for the Celest Cloud platform. | <a href="https://pub.dev/packages/celest_cloud" target="_blank"> <img src="https://img.shields.io/pub/v/celest_cloud.svg"></a> | [![Celest Cloud](https://github.com/celest-dev/celest/actions/workflows/celest_cloud.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest_cloud.yaml) |
| [celest_core](packages/celest_core/) | Core types and utilities shared between Celest packages. | <a href="https://pub.dev/packages/celest_core" target="_blank"> <img src="https://img.shields.io/pub/v/celest_core.svg"></a> | [![Celest Core](https://github.com/celest-dev/celest/actions/workflows/celest_core.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest_core.yaml) |

## Services

| Service | Description | Pub | Checks |
| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [celest_cloud_auth](packages/celest_cloud_auth/) | A Dart-native authentication and authorization solution built on [Cedar](https://github.com/celest-dev/cedar-dart) and Celest Data. | <a href="https://pub.dev/packages/celest_cloud_auth" target="_blank"> <img src="https://img.shields.io/pub/v/celest_cloud_auth.svg"></a> | [![Celest Cloud Auth](https://github.com/celest-dev/celest/actions/workflows/celest_cloud_auth.yaml/badge.svg)](https://github.com/celest-dev/celest/actions/workflows/celest_cloud_auth.yaml) |

## License

This repo is licensed under the [BSD-2-Clause-Patent](https://spdx.org/licenses/BSD-2-Clause-Patent.html) license. See [LICENSE.md](LICENSE.md) for the full text.
Expand Down
Binary file added assets/analyzer-plugin.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/gemini/celest/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_backend:
path: ..
celest_core: ^1.0.0-0
celest_core: ^1.0.0
http: ^1.0.0
meta: ^1.12.0
native_storage: ^0.2.2
Expand Down
4 changes: 2 additions & 2 deletions examples/gemini/celest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_ast: ^0.1.0
celest_core: ^1.0.0-0
celest_core: ^1.0.0
google_generative_ai: ^0.2.0
http: '>=0.13.0 <2.0.0'
meta: ^1.12.0
Expand Down
4 changes: 2 additions & 2 deletions examples/openai/celest/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_backend:
path: ..
celest_core: ^1.0.0-0
celest_core: ^1.0.0
http: ^1.0.0
meta: ^1.12.0
native_storage: ^0.2.2
Expand Down
4 changes: 2 additions & 2 deletions examples/openai/celest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_ast: ^0.1.0
celest_core: ^1.0.0-0
celest_core: ^1.0.0
chat_gpt_sdk: ^2.2.8
http: '>=0.13.0 <2.0.0'
meta: ^1.12.0
Expand Down
4 changes: 2 additions & 2 deletions examples/tasks/celest/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_backend:
path: ..
celest_core: ^1.0.0-0
celest_core: ^1.0.0
http: ^1.0.0
native_storage: ^0.2.2

Expand Down
4 changes: 1 addition & 3 deletions examples/tasks/celest/lib/src/project.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'package:celest/celest.dart';
import 'package:celest_backend/src/database/task_database.dart';

const project = Project(
name: 'tasks',
);
const project = Project(name: 'tasks');

const tasksDatabase = Database(
schema: Schema.drift(TaskDatabase),
Expand Down
4 changes: 2 additions & 2 deletions examples/tasks/celest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest_core: ^1.0.0-0
celest: ^1.0.0
celest_core: ^1.0.0
drift: ^2.20.3
drift_hrana: ^1.0.2
meta: ^1.12.0
Expand Down
72 changes: 71 additions & 1 deletion packages/celest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,74 @@
## 1.0.0-dev.0
## 1.0.0

The first release of Celest V1! This release includes:

- **Celest Data**

Celest Data is a brand new database offering from Celest built off of SQLite and [Drift](https://pub.dev/packages/drift).

To get started with Celest Data, add a new `Database` component to your Celest project and point it at your Drift schema.

```dart
import 'package:celest/celest.dart';
import 'package:celest_backend/src/database/task_database.dart';
const project = Project(name: 'tasks');
const tasksDatabase = Database(
schema: Schema.drift(TaskDatabase),
);
```

When you run Celest locally, Celest Data will use SQLite to store your data. And when you deploy your Celest project, Celest Data
will automatically switch to using Celest Data backed by [Turso](https://turso.tech/).

- **Celest Cloud Auth**

[Celest Cloud Auth](https://pub.dev/packages/celest_cloud_auth) is an open-source backend service for authenticating users and authorizing access to resources. It is built on the [Cedar](https://www.cedarpolicy.com/en) policy engine and Celest Data.

Now, when adding [Auth]() to your Celest project, Celest will automatically generate the necessary code to integrate Celest Cloud
Auth into your project so you can start authenticating users and controlling the resources they can access.

```dart
import 'package:celest/celest.dart';
const project = Project(name: 'my-project');
const auth = Auth(
providers: [
AuthProvider.email(),
],
);
```

- **Self-Hosting**

Celest now supports self-hosting your Celest project. You can run your Celest project on your own server or cloud provider.
This allows you to have full control over your backend and data.

The new `celest build` command will automatically generate a `Dockerfile` which you can deploy to any server of your choice.

- **Improved Developer Experience**

We have made several improvements to the developer experience, including better error messages, improved documentation, and a
new Dart analyzer plugin which helps you more seamlessly navigate your code. Now, when using the `Go To Definition` feature in
your IDE, you will be taken directly from your frontend to your backend code.

<br />

![Go To Definition](https://github.com/celest-dev/celest/blob/master/assets/analyzer-plugin.gif)

<br />

- **...and much more on the Roadmap!**

We are excited to continue building out the Celest platform and have many more features planned for the future. Our initial release
of Celest V1 provides the foundation for many new features to come include server-side rendering of Flutter app, better integration
of your Data models and Auth policies, Web Hosting, Storage, and much more!

Stay tuned for more updates by following us on [X](https://x.com/Celest_Dev) and joining our [Discord](https://celest.dev/discord).

Flutter is the future! 🚀

## 0.4.2

Expand Down
4 changes: 2 additions & 2 deletions packages/celest/example/celest/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_backend:
path: ../
celest_core: ^1.0.0-0
celest_core: ^1.0.0
http: ^1.0.0
native_storage: ^0.2.2

Expand Down
4 changes: 2 additions & 2 deletions packages/celest/example/celest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_ast: ^0.1.0
celest_core: ^1.0.0-0
celest_core: ^1.0.0
http: '>=0.13.0 <2.0.0'
meta: ^1.12.0

Expand Down
6 changes: 3 additions & 3 deletions packages/celest/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: celest
description: The Flutter cloud platform. Celest enables you to build your entire backend in Dart.
version: 1.0.0-dev.0
version: 1.0.0
homepage: https://celest.dev
repository: https://github.com/celest-dev/celest/tree/main/packages/celest

Expand All @@ -11,9 +11,9 @@ environment:
dependencies:
async: ^2.11.0
celest_ast: ^0.1.0
celest_auth: 1.0.0-dev.0
celest_auth: ^1.0.0
celest_cloud: ^0.1.1
celest_core: 1.0.0-dev.0
celest_core: ^1.0.0
chunked_stream: ^1.4.2
cloud_http: ^0.1.0
collection: ^1.18.0
Expand Down
6 changes: 5 additions & 1 deletion packages/celest_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## 1.0.0-dev.0
## 1.0.0

The first release of Celest V1!

See the release notes for the [celest](https://pub.dev/packages/celest) package for more details.

## 0.4.1

Expand Down
4 changes: 2 additions & 2 deletions packages/celest_auth/example/celest/client/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_backend:
path: ../
celest_core: ^1.0.0-0
celest_core: ^1.0.0
http: ^1.0.0
native_storage: ^0.2.2

Expand Down
4 changes: 2 additions & 2 deletions packages/celest_auth/example/celest/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ environment:
sdk: ^3.4.0

dependencies:
celest: ^1.0.0-0
celest: ^1.0.0
celest_ast: ^0.1.0
celest_auth: 'any'
celest_cloud_auth:
path: ../../../../services/celest_cloud_auth
celest_core: ^1.0.0-0
celest_core: ^1.0.0
drift_hrana: ^1.0.2
http: '>=0.13.0 <2.0.0'
meta: ^1.12.0
Expand Down
4 changes: 2 additions & 2 deletions packages/celest_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: celest_auth
description: The Auth runtime and client library for Celest, the Flutter cloud platform.
version: 1.0.0-dev.0
version: 1.0.0
homepage: https://celest.dev
repository: https://github.com/celest-dev/celest/tree/main/packages/celest_auth

Expand All @@ -14,7 +14,7 @@ dependencies:
built_value: ^8.9.1
cedar: ^0.2.2
celest_cloud: ^0.1.0
celest_core: 1.0.0-dev.0
celest_core: ^1.0.0
chunked_stream: ^1.4.2
corks_cedar: ^0.2.1
ffi: ^2.1.2
Expand Down
2 changes: 1 addition & 1 deletion packages/celest_cloud/lib/src/util/operations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ extension on Status {

extension<T extends GeneratedMessage> on T {
T unpack(Any any) {
return any.unpackInto(this.createEmptyInstance() as T);
return any.unpackInto(createEmptyInstance() as T);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/celest_cloud/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: celest_cloud
description: API contracts and Dart clients for the Celest Cloud platform.
version: 0.1.4-wip
version: 0.1.4
repository: https://github.com/celest-dev/celest

environment:
sdk: ^3.3.0

dependencies:
async: ^2.11.0
celest_core: ^0.5.0-dev.1
celest_core: ^1.0.0
code_builder: ^4.10.0
collection: ^1.18.0
fixnum: ^1.1.0
Expand Down
6 changes: 5 additions & 1 deletion packages/celest_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## 1.0.0-dev.0
## 1.0.0

The first release of Celest V1!

See the release notes for the [celest](https://pub.dev/packages/celest) package for more details.

## 0.4.2

Expand Down
2 changes: 1 addition & 1 deletion packages/celest_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: celest_core
description: Celest types and utilities shared between the client and the cloud.
version: 1.0.0-dev.0
version: 1.0.0
homepage: https://celest.dev
repository: https://github.com/celest-dev/celest/tree/main/packages/celest_core

Expand Down
Loading

0 comments on commit b610162

Please sign in to comment.