Skip to content

Commit

Permalink
Rename cedar_core to cedar
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Mar 9, 2024
1 parent a843a89 commit 6b03d74
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 30 deletions.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions packages/cedar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# cedar

Base types and utilities of the Cedar language in Dart.

This is separate from `package:cedar` so that the types can be used without bundling the native assets of `package:cedar`.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Base types and utilities of the Cedar language in Dart.
///
/// This is separate from `package:cedar_dart` so that the types can be used
/// without bundling the native assets of `package:cedar_dart`.
/// This is separate from `package:cedar_ffi` so that the types can be used
/// without bundling the native assets of `package:cedar_ffi`.
library;

export 'src/ast/cedar_entity.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:cedar_core/src/ast/cedar_entity_id.dart';
import 'package:cedar_core/src/ast/cedar_node.dart';
import 'package:cedar_core/src/policy/json_expr.dart';
import 'package:cedar/src/ast/cedar_entity_id.dart';
import 'package:cedar/src/ast/cedar_node.dart';
import 'package:cedar/src/policy/json_expr.dart';

part 'cedar_entity.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:cedar_core/src/ast/cedar_node.dart';
import 'package:cedar/src/ast/cedar_node.dart';

part 'cedar_entity_id.g.dart';

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:cedar_core/src/ast/cedar_entity_id.dart';
import 'package:cedar_core/src/ast/cedar_node.dart';
import 'package:cedar_core/src/util.dart';
import 'package:cedar/src/ast/cedar_entity_id.dart';
import 'package:cedar/src/ast/cedar_node.dart';
import 'package:cedar/src/util.dart';

final class CedarSchema implements CedarNode {
CedarSchema({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/json_object.dart';
import 'package:built_value/serializer.dart';
import 'package:cedar_core/cedar_core.dart';
import 'package:cedar/cedar.dart';

part 'cedar_policy.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:cedar_core/cedar_core.dart';
import 'package:cedar/cedar.dart';

part 'cedar_policy_set.g.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:convert';

import 'package:cedar_core/src/ast/cedar_entity_id.dart';
import 'package:cedar/src/ast/cedar_entity_id.dart';
import 'package:collection/collection.dart';
import 'package:meta/meta.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:built_collection/built_collection.dart';
import 'package:built_value/serializer.dart';
import 'package:cedar_core/cedar_core.dart';
import 'package:cedar/cedar.dart';

part 'serializers.g.dart';

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cedar_core
name: cedar
description: Base types and utilities of the Cedar policy language.
version: 0.1.0

Expand Down
5 changes: 0 additions & 5 deletions packages/cedar_core/README.md

This file was deleted.

4 changes: 2 additions & 2 deletions packages/celest_auth/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ dependencies:
flutter_state_notifier: ^1.0.0

dependency_overrides:
cedar_core:
path: ../../cedar_core
cedar:
path: ../../cedar
celest:
path: ../../celest
celest_auth:
Expand Down
2 changes: 1 addition & 1 deletion packages/celest_auth/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
async: ^2.11.0
built_collection: ^5.1.1
built_value: ^8.9.1
cedar_core: ^0.1.0
cedar: ^0.1.0
celest_core: ^0.2.0
chunked_stream: ^1.4.2
corks: ^0.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/corks/lib/src/cork.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';

import 'package:cedar_core/cedar_core.dart' as cedar;
import 'package:cedar/cedar.dart' as cedar;
import 'package:corks/corks_proto.dart' as proto;
import 'package:corks/src/interop/proto_interop.dart';
import 'package:corks/src/proto/google/protobuf/any.pb.dart' as proto;
Expand Down
2 changes: 1 addition & 1 deletion packages/corks/lib/src/interop/proto_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library;

import 'dart:typed_data';

import 'package:cedar_core/cedar_core.dart' as cedar;
import 'package:cedar/cedar.dart' as cedar;
import 'package:corks/src/proto/cedar/v3/entity.pb.dart';
import 'package:corks/src/proto/cedar/v3/entity_id.pb.dart';
import 'package:corks/src/proto/cedar/v3/expr.pb.dart';
Expand Down
4 changes: 2 additions & 2 deletions packages/corks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ environment:
sdk: ^3.3.0

dependencies:
cedar_core:
path: ../cedar_core
cedar:
path: ../cedar
crypto: ^3.0.3
fixnum: ^1.1.0
meta: ^1.10.0
Expand Down
6 changes: 3 additions & 3 deletions packages/corks/test/cedar_test_todo.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// TODO(dnys1): Get this working with a dependency on cedar_dart.
// TODO(dnys1): Get this working with a dependency on cedar.

// import 'package:cedar_core/cedar_core.dart' as cedar;
// import 'package:cedar_dart/testing/cedar_test_corpus.dart';
// import 'package:cedar/cedar.dart' as cedar;
// import 'package:cedar/testing/cedar_test_corpus.dart';
// import 'package:corks/src/interop/proto_interop.dart';
// import 'package:test/test.dart';

Expand Down
2 changes: 1 addition & 1 deletion packages/corks/test/cork_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'dart:convert';
import 'dart:math';
import 'dart:typed_data';

import 'package:cedar_core/cedar_core.dart';
import 'package:cedar/cedar.dart';
import 'package:corks/corks.dart';
import 'package:test/test.dart';

Expand Down

0 comments on commit 6b03d74

Please sign in to comment.