Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@latticexyz/gas-report
Advanced tools
Measure and report gas usage within forge tests
Add some reports to your forge tests
import { Test } from "forge-std/Test.sol";
import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol";
contract ExampleTest is Test, GasReporter {
function testGas() public {
startGasReport("description of behavior to measure gas for");
// do something here
endGasReport();
}
}
Then use the cli command to run tests and save the report:
pnpm gas-report --save gas-report.json
Or, if you have your own test command, you can pipe the output to gas-report --stdin
:
GAS_REPORTER_ENABLED=true forge test -vvv --isolate | pnpm gas-report --stdin
Run pnpm gas-report --help
for more details.
Version 2.2.0
Release date: Fri Aug 30 2024
chore(explorer): update world explorer naming (#3069) (@latticexyz/explorer)
Initial release of the @latticexyz/explorer
package. World Explorer is a standalone tool designed to explore and manage worlds. This initial release supports local worlds, with plans to extend support to any world in the future.
Read more on how to get started or contribute in the World Explorer README.
fix(common): route all actions through viem client (#3071) (@latticexyz/common)
Updated all custom Viem actions to properly call other actions via getAction
so they can be composed.
build: use shx from dev deps (#3085) (create-mud)
Templates now use shx
to run shell commands in scripts for better Windows compatibility.
feat(world): add namespaceLabel to system config (#3057) (@latticexyz/config, @latticexyz/store)
Fixed a few type issues with namespaceLabel
in tables and added/clarified TSDoc for config input/output objects.
fix(create-mud): update changeset package name + description (#3066) (create-mud)
New projects created with pnpm create mud
now include the World Explorer and SQLite indexer running as additional services.
feat(world): add namespaceLabel to system config (#3057) (@latticexyz/cli, @latticexyz/world)
Add a strongly typed namespaceLabel
to the system config output.
It corresponds to the label
of the namespace the system belongs to and can't be set manually.
feat(cli,world): register system ABI onchain (#3050) (@latticexyz/cli)
In addition to table labels, system labels and ABIs are now registered onchain during deploy.
FAQs
Gas reporter for specific lines within forge tests
The npm package @latticexyz/gas-report receives a total of 2,679 weekly downloads. As such, @latticexyz/gas-report popularity was classified as popular.
We found that @latticexyz/gas-report demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.