Skip to content

Commit

Permalink
Instance source tracking and meta management, fix .src files (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
DervexDev committed Mar 24, 2024
1 parent b4ca7d4 commit acd641e
Show file tree
Hide file tree
Showing 14 changed files with 336 additions and 361 deletions.
49 changes: 26 additions & 23 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,69 +6,72 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

### Improved

- Instance source tracking and meta management

### Fixed

- `.src` and `init` files

## [2.0.0-pre5] - 2024-03-22

### Improved

- `plugin` subcommand now creates directory if the provided one does not exist
- Argon plugin gets installed automatically at the first Argon launch
- Config is now only read once
- `plugin` subcommand now creates directory if the provided one does not exist
- Argon plugin gets installed automatically at the first Argon launch
- Config is now only read once

## [2.0.0-pre4] - 2024-03-21

### Added

- `plugin` subcommand that installs Argon plugin locally
- Argon CLI and plugin updater
- More customization with global config
- `plugin` subcommand that installs Argon plugin locally
- Argon CLI and plugin updater
- More customization with global config

### Changed

- `run` subcommand is now `serve`
- Changed default project name from `.argon.project.json` to `default.project.json`
- `run` subcommand is now `serve`
- Changed default project name from `.argon.project.json` to `default.project.json`

### Fixed

- Sync rules no longer ignore specified project path, reported by [@Arid](https://github.com/AridAjd) and [@EthanMichalicek](https://github.com/EthanMichalicek) in [#23](https://github.com/argon-rbx/argon/issues/23)
- Sync rules no longer ignore specified project path, reported by [@Arid](https://github.com/AridAjd) and [@EthanMichalicek](https://github.com/EthanMichalicek) in [#23](https://github.com/argon-rbx/argon/issues/23)

## [2.0.0-pre3] - 2024-03-19

### Changed

- `run_async` option is now disabled by default
- `run_async` option is now disabled by default

### Improved

- Free port searching speed
- Subcommand descriptions
- Free port searching speed
- Subcommand descriptions

### Fixed

- Path canonicalization on Windows
- Session management on Windows
- Crash reporting on Windows
- Release workflow
- Path canonicalization on Windows
- Session management on Windows
- Crash reporting on Windows
- Release workflow

## [2.0.0-pre2] - 2024-03-18

### Fixed

- Argon installer not working properly with GitHub Actions
- Argon installer not working properly with GitHub Actions

## [2.0.0-pre1] - 2024-03-18

### Added

- Brand new Argon CLI, written in Rust
- Brand new Argon CLI, written in Rust

[Unreleased]: https://github.com/argon-rbx/argon/compare/2.0.0-pre5...HEAD

[2.0.0-pre5]: https://github.com/argon-rbx/argon/compare/2.0.0-pre4...2.0.0-pre5

[2.0.0-pre4]: https://github.com/argon-rbx/argon/compare/2.0.0-pre3...2.0.0-pre4

[2.0.0-pre3]: https://github.com/argon-rbx/argon/compare/2.0.0-pre2...2.0.0-pre3

[2.0.0-pre2]: https://github.com/argon-rbx/argon/compare/2.0.0-pre1...2.0.0-pre2

[2.0.0-pre1]: https://github.com/argon-rbx/argon/compare/3057ca895492519fc29e7ab0bd8bdebc86d3e53c...2.0.0-pre1
16 changes: 2 additions & 14 deletions src/core/changes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use log::error;
use rbx_dom_weak::types::{Ref, Variant};
use serde::Serialize;
use std::collections::HashMap;
Expand Down Expand Up @@ -54,20 +53,9 @@ impl Changes {
}
}

pub fn add(&mut self, mut snapshot: Snapshot, parent: Ref) {
let id = if let Some(id) = snapshot.id {
id
} else {
error!("Attempted to add a snapshot without an ID to changes: {:?}", snapshot);
return;
};

// Is this necessary?
snapshot.meta = None;
snapshot.paths.clear();

pub fn add(&mut self, snapshot: Snapshot, parent: Ref) {
self.additions.push(AddedSnapshot {
id,
id: snapshot.id,
parent,
name: snapshot.name,
class: snapshot.class,
Expand Down
Loading

0 comments on commit acd641e

Please sign in to comment.