forked from extern/nushell
2579a827fc
Bumps [mockito](https://github.com/lipanski/mockito) from 0.32.5 to 1.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/lipanski/mockito/releases">mockito's releases</a>.</em></p> <blockquote> <h2>1.0.0</h2> <p>🎈 7 years and 63 releases later, it's finally time for the 1.0 🎈</p> <h2>Changes</h2> <ul> <li><strong>[Breaking]</strong> The legacy interface was removed in this version</li> <li><strong>[Breaking]</strong> <code>Mock::with_body_from_fn</code> was renamed to <code>Mock::with_chunked_body</code> - the former is still supported with a deprecation warning</li> <li>Mocks are only cleared when the server is dropped, not when the mock is dropped - this means you <strong>don't have to assign mocks to variables any more</strong> (unless you want to call other methods on them)</li> <li>Introduced the <code>Mock::remove</code> and <code>Mock::remove_async</code> methods to remove mocks on demand</li> </ul> <h2>Major changes since 0.31</h2> <ul> <li>Tests can now run in parallel</li> <li>Support for HTTP2</li> <li>An async interface for all actions (though the sync interface is also available)</li> <li>Mock multiple server/hosts at the same time</li> </ul> <p>For a list of all the changes please check the <a href="https://github.com/lipanski/mockito/releases">release log</a>.</p> <h2>Migrating to the new API</h2> <p>Legacy API:</p> <pre lang="rust"><code>let m1 = mockito::mock("GET", "/hello").with_body("hello").create(); let m2 = mockito::mock("GET", "/bye").with_body("bye").create(); <p>// Use one of these to configure your client let host = mockito:server_address(); let url = mockito::server_url(); </code></pre></p> <p>New API:</p> <pre lang="rust"><code>let mut server = mockito::Server::new(); server.mock("GET", "/hello").with_body("hello").create(); server.mock("GET", "/bye").with_body("bye").create(); <p>// Use one of these to configure your client let host = server.host_with_port(); let url = server.url(); </code></pre></p> <blockquote> <p>If you can't migrate to the new API in one go, consider using version 0.32.5, which supports both the legacy API as well as the new API.</p> </blockquote> <h2>Migrating to the async API</h2> <p>In order to write async tests, you'll need to use the <code>_async</code> methods:</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
---|---|---|
.. | ||
nu_plugin_custom_values | ||
nu_plugin_example | ||
nu_plugin_formats | ||
nu_plugin_gstat | ||
nu_plugin_inc | ||
nu_plugin_python | ||
nu_plugin_query | ||
nu-cli | ||
nu-cmd-lang | ||
nu-color-config | ||
nu-command | ||
nu-engine | ||
nu-explore | ||
nu-glob | ||
nu-json | ||
nu-parser | ||
nu-path | ||
nu-plugin | ||
nu-pretty-hex | ||
nu-protocol | ||
nu-system | ||
nu-table | ||
nu-term-grid | ||
nu-test-support | ||
nu-utils | ||
README.md |
Nushell core libraries and plugins
These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.
Foundational libraries are split into two kinds of crates:
- Core crates - those crates that work together to build the Nushell language engine
- Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.
Plugins are likewise also split into two types:
- Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
- Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.