Skip to content

Commit

Permalink
Update to v0.8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
StefansArya committed Feb 25, 2023
1 parent 16292c2 commit 5618b0a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 10 deletions.
49 changes: 42 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# 0.8.12

### Features
- Add `initPorts` for dynamically initializing ports
- Emit `destroy` event when the instance was destroyed
- Add experimental feature to lock the instance
- Improve security for environment variable node by using connection rule
- Add experimental `Blackprint.Types.Slot` for ports with lazy type assignment
- Add event nodes feature
- Handle namespaced variable or nodes

### Bug Fix
- Emit internal event when function port was renamed
- Fix event to be emitted to root instance
- Fix function node that was not being initialized if created manually at runtime
- Fix route port connection and array input data
- Immediate init interface for single node creation
- Improve performance and fix execution order for with `StructOf` feature
- Reset updated cable status when disconnected
- Save port configuration and use it for creating function port
- Improve code for step mode execution
- Replace dot settings's internal save name with underscore
- Disable port manipulation on locked instance
- Put id as title if doesn't have custom title
- Avoid calling update on cable connection when the node having input route
- Remove internal marker to avoid dynamic port connection on outer function port
- Fix node update using default input value when cable was disconnected
- Fix dynamic port marker on internal interface
- Fix type assigned on variable node
- Force output port that use union to be Any type
- Move port type re-assigment for output port
- Improve output port's type when using port feature
- Validate namespace name
- Add options to disable cleaning the instance when importing JSON

# 0.8.0

### Features
Expand Down Expand Up @@ -33,22 +68,22 @@ $instance->getNode(0); // Before
$instance->ifaceList[0]; // After
```

- `.update` function will no longer receive parameter if `.partialUpdate` is not set to true
- `.update` function will no longer receive cable parameter if `.partialUpdate` is not set to true

```php
// Before
class MyNode extends \Blackprint\Node {
function update($cable){...}
function update($cable){...}
}

// After
class MyNode extends \Blackprint\Node {
function __construct($instance){
// ...
$this->partialUpdate = true;
}
function __construct($instance){
// ...
$this->partialUpdate = true;
}

function update($cable){...}
function update($cable){...}
}
```

Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name":"blackprint/engine",
"description": "PHP Engine for Blackprint",
"version": "0.8.0",
"version": "0.8.12",
"keywords": ["blackprint", "engine"],
"license":"MIT",
"require": {
"php": "^8.1",
"ext-json": "*"
"ext-json": "*",
"php-ds/php-ds": "^1.4"
},
"autoload": {
"files": ["src/Internal.php"],
"psr-4": {
"Blackprint\\": "src/"
}
}
}
}

0 comments on commit 5618b0a

Please sign in to comment.