New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@multi-user-domain/mud-lib

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@multi-user-domain/mud-lib - npm Package Compare versions

Comparing version 1.0.0 to 1.2.0

dist/es/index.es.js

31

package.json
{
"name": "@multi-user-domain/mud-lib",
"version": "1.0.0",
"main": "dist/index.js",
"module": "dist/index.es.js",
"version": "1.2.0",
"main": "dist/cjs/index.js",
"module": "dist/es/index.es.js",
"author": "Matt Tennison <matt@matttennison.com>",

@@ -13,8 +13,14 @@ "license": "MIT",

"@babel/preset-typescript": "^7.14.5",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.5",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-typescript": "^8.2.5",
"@semantic-release/git": "^9.0.0",
"@semantic-release/npm": "^7.1.3",
"@testing-library/react": "^12.0.0",
"@types/jest": "^26.0.24",
"@types/react": "^17.0.15",
"@rdfjs/types": "^1.0.1",
"@types/n3": "^1.10.0",
"babel-jest": "^27.0.6",

@@ -27,5 +33,4 @@ "commitizen": "^4.2.4",

"prettier": "2.3.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rollup": "^2.55.1",
"rollup-plugin-polyfill-node": "^0.7.0",
"semantic-release": "^17.4.4",

@@ -41,12 +46,9 @@ "tslib": "^2.3.0",

"test": "jest",
"prepublishOnly": "yarn lint && yarn test",
"prepublishOnly": "yarn lint",
"cm": "cz",
"semantic-release": "semantic-release"
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"peerDependencies": {},
"lint-staged": {
"*.{js,css,md}": "prettier --write"
"*.{js,jsx,css,md,ts,tsx}": "prettier --write"
},

@@ -61,3 +63,8 @@ "config": {

"url": "https://github.com/Multi-User-Domain/mud-lib.git"
},
"dependencies": {
"@inrupt/lit-generated-vocab-common": "^0.3.11",
"@inrupt/solid-client": "^0.4.0",
"@rdfjs/dataset": "1.1.1"
}
}

@@ -5,2 +5,5 @@ # mud-lib

![npm bundle size](https://img.shields.io/bundlephobia/min/@multi-user-domain/mud-lib)
![npm (scoped)](https://img.shields.io/npm/v/@multi-user-domain/mud-lib)
## Tech used

@@ -14,5 +17,11 @@

- Hygen
- Semantic Release
- Commitizen
## Getting Started
Install: `npm install @multi-user-domain/mud-lib` or `yarn add @multi-user-domain/mud-lib`
## Contributing
### Adding a new component

@@ -25,1 +34,18 @@

```
### Testing local changes in another project
To test local changes in another project using this library (e.g. in [mud-react](https://github.com/Multi-User-Domain/mud-react)), you can use `npm link` or `yarn link`, commands which create an operating system link to the local version of the library:
```
cd /path/to/mud-lib/
yarn link
cd /path/to/other/project/
yarn link "@multi-user-domain/mud-lib"
```
Sometimes this can lead to an error `Invalid Hook Call` in the project using mud-lib. If this happens and when you run `npm ls react` it displays more than one version of React, the issue is because the bundler "sees" two Reacts - one in the library folder and one in the application folder. The [React docs describe this problem](https://reactjs.org/warnings/invalid-hook-call-warning.html), one possible fix is to run `yarn link` from `/path/to/mud-lib/node_modules/react` (and then `yarn link react` from your application folder) to make the library use the application's React copy.
### Releasing
Releases are automated via semantic release, which runs on all pushes to the master and next branches. If you push to master, the release will go out as a proper release in npm under the 'latest' tag. If you push to next, it goes out under the 'next' tag.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc