nushell/crates/nu-plugin-test-support/tests
Stefan Holderbach b19da158d5
Rename Value::CustomValue to Value::Custom (#12309)
# Description
The second `Value` is redundant and will consume five extra bytes on
each transmission of a custom value to/from a plugin.

# User-Facing Changes
This is a breaking change to the plugin protocol.

The [example in the protocol
reference](https://www.nushell.sh/contributor-book/plugin_protocol_reference.html#value)
becomes

```json
{
  "Custom": {
    "val": {
      "type": "PluginCustomValue",
      "name": "database",
      "data": [36, 190, 127, 40, 12, 3, 46, 83],
      "notify_on_drop": true
    },
    "span": {
      "start": 320,
      "end": 340
    }
  }
}
```

instead of 

```json
{
  "CustomValue": {
    ...
  }
}
```


# After Submitting
Update plugin protocol reference
2024-03-27 22:10:56 +01:00
..
custom_value Rename Value::CustomValue to Value::Custom (#12309) 2024-03-27 22:10:56 +01:00
hello Change PluginCommand API to be more like Command (#12279) 2024-03-27 11:59:57 +01:00
lowercase Change PluginCommand API to be more like Command (#12279) 2024-03-27 11:59:57 +01:00
main.rs Add test support crate for plugin developers (#12259) 2024-03-23 13:29:54 -05:00