Skip to content

Commit 8ea93e7

Browse files
authored
Merge pull request #53 from bug-ops/refactor/rename-pjs-domain-lib
refactor: rename pjs_domain lib to pjs-rs-domain
2 parents eb1251c + 3ce680f commit 8ea93e7

File tree

16 files changed

+32
-61
lines changed

16 files changed

+32
-61
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -124,37 +124,8 @@ jobs:
124124
shared-key: "publish"
125125
save-if: false
126126

127-
- name: Publish pjson-rs-domain to crates.io
128-
run: cargo publish --manifest-path crates/pjs-domain/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
129-
continue-on-error: true
130-
131-
- name: Wait for pjson-rs-domain to be available (up to 2 minutes)
132-
run: |
133-
for i in {1..24}; do
134-
if cargo search pjson-rs-domain --limit 1 2>/dev/null | grep -q "pjson-rs-domain"; then
135-
echo "pjson-rs-domain is now available on crates.io"
136-
exit 0
137-
fi
138-
echo "Waiting for pjson-rs-domain to be available... ($i/24)"
139-
sleep 5
140-
done
141-
echo "Warning: pjson-rs-domain may not be immediately available"
142-
143-
- name: Publish pjson-rs to crates.io
144-
run: cargo publish --manifest-path crates/pjs-core/Cargo.toml --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
145-
continue-on-error: true
146-
147-
- name: Wait for pjson-rs to be available (up to 2 minutes)
148-
run: |
149-
for i in {1..24}; do
150-
if cargo search pjson-rs --limit 1 2>/dev/null | grep -q "pjson-rs"; then
151-
echo "pjson-rs is now available on crates.io"
152-
exit 0
153-
fi
154-
echo "Waiting for pjson-rs to be available... ($i/24)"
155-
sleep 5
156-
done
157-
echo "Warning: pjson-rs may not be immediately available"
127+
- name: Publish workspace to crates.io
128+
run: cargo publish --workspace --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
158129

159130
# Create GitHub release
160131
github-release:

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resolver = "2"
77
[workspace.package]
88
homepage = "https://github.com/bug-ops/pjs"
99
documentation = "https://docs.rs/pjson-rs"
10-
version = "0.4.5"
10+
version = "0.4.6"
1111
authors = ["Andrei G. <[email protected]>"]
1212
readme = "README.md"
1313
edition = "2024"
@@ -43,8 +43,8 @@ memchr = "2.6"
4343
mimalloc = "0.1"
4444
once_cell = "1.21"
4545
parking_lot = "0.12"
46-
pjson-rs-domain = { path = "crates/pjs-domain" }
47-
pjson-rs = { path = "crates/pjs-core" }
46+
pjson-rs-domain = { version = "0.4.6",path = "crates/pjs-domain" }
47+
pjson-rs = { version = "0.4.6", path = "crates/pjs-core" }
4848
priority-queue = "2.0"
4949
prometheus = "0.14"
5050
proptest = "1.4"

crates/pjs-core/src/domain/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! and domain events. No dependencies on infrastructure concerns.
55
66
// Re-export domain types from pjs-domain crate (WASM-compatible)
7-
pub use pjs_domain::{DomainError, DomainResult, entities, events, value_objects};
7+
pub use pjson_rs_domain::{DomainError, DomainResult, entities, events, value_objects};
88

99
// pjs-core specific domain modules
1010
pub mod aggregates;

crates/pjs-domain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = { workspace = true }
1010
publish = true
1111

1212
[lib]
13-
name = "pjs_domain"
13+
name = "pjson_rs_domain"
1414
path = "src/lib.rs"
1515

1616
[dependencies]

crates/pjs-domain/src/value_objects/schema.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl SchemaId {
2424
///
2525
/// # Examples
2626
/// ```
27-
/// # use pjs_domain::value_objects::SchemaId;
27+
/// # use pjson_rs_domain::value_objects::SchemaId;
2828
/// let schema_id = SchemaId::new("user-profile-v1");
2929
/// ```
3030
pub fn new(id: impl Into<String>) -> Self {
@@ -56,7 +56,7 @@ impl std::fmt::Display for SchemaId {
5656
///
5757
/// # Examples
5858
/// ```
59-
/// # use pjs_domain::value_objects::{Schema, SchemaType};
59+
/// # use pjson_rs_domain::value_objects::{Schema, SchemaType};
6060
/// let schema = Schema::Object {
6161
/// properties: vec![
6262
/// ("id".to_string(), Schema::Integer { minimum: Some(1), maximum: None }),

crates/pjs-domain/tests/events_comprehensive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//! - EventId generation
1111
1212
use chrono::Utc;
13-
use pjs_domain::{
13+
use pjson_rs_domain::{
1414
events::{
1515
DomainEvent, EventStore, InMemoryEventStore, PerformanceMetrics, PriorityDistribution,
1616
SessionState,
@@ -692,7 +692,7 @@ mod session_state_tests {
692692
}
693693

694694
mod event_id_tests {
695-
use pjs_domain::events::EventId;
695+
use pjson_rs_domain::events::EventId;
696696

697697
#[test]
698698
fn test_event_id_new() {

crates/pjs-domain/tests/frame_comprehensive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
//! Tests cover all frame types (Skeleton, Patch, Complete, Error),
44
//! frame operations, validation, metadata, and edge cases.
55
6-
use pjs_domain::entities::frame::{Frame, FramePatch, FrameType, PatchOperation};
7-
use pjs_domain::value_objects::{JsonData, JsonPath, Priority, StreamId};
6+
use pjson_rs_domain::entities::frame::{Frame, FramePatch, FrameType, PatchOperation};
7+
use pjson_rs_domain::value_objects::{JsonData, JsonPath, Priority, StreamId};
88
use std::collections::HashMap;
99

1010
// ============================================================================

crates/pjs-domain/tests/json_data_comprehensive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Tests cover all variants (Null, Bool, Number, String, Array, Object),
44
//! conversions, edge cases, and memory operations.
55
6-
use pjs_domain::value_objects::JsonData;
6+
use pjson_rs_domain::value_objects::JsonData;
77
use std::collections::HashMap;
88

99
// ============================================================================

crates/pjs-domain/tests/schema_comprehensive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! Tests cover schema creation, validation rules, type checking,
44
//! cost estimation, and error handling.
55
6-
use pjs_domain::value_objects::{Schema, SchemaId, SchemaType, SchemaValidationError};
6+
use pjson_rs_domain::value_objects::{Schema, SchemaId, SchemaType, SchemaValidationError};
77
use std::collections::HashMap;
88

99
// ============================================================================

0 commit comments

Comments
 (0)