@solid-primitives/media
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -0,1 +1,3 @@ | ||
import { Accessor } from 'solid-js'; | ||
/** | ||
@@ -15,3 +17,3 @@ * Creates a very simple and straightforward media query monitor. | ||
*/ | ||
declare const createMediaQuery: (query: string, fallbackState?: boolean, watchChange?: boolean) => (() => boolean); | ||
declare const createMediaQuery: (query: string, fallbackState?: boolean, watchChange?: boolean) => Accessor<boolean>; | ||
@@ -18,0 +20,0 @@ declare type Breakpoints = Record<string, string>; |
144
package.json
{ | ||
"name": "@solid-primitives/media", | ||
"version": "1.2.0", | ||
"description": "Primitives for media query and device features", | ||
"author": "David Di Biase <dave.dibiase@gmail.com>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/davedbase/solid-primitives/tree/main/packages/media", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/davedbase/solid-primitives.git" | ||
}, | ||
"primitive": { | ||
"name": "media", | ||
"stage": 3, | ||
"list": [ | ||
"createMediaQuery", | ||
"createBreakpoints" | ||
], | ||
"category": "Display & Media" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"private": false, | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "./dist/server.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
"node": { | ||
"import": "./dist/server.js", | ||
"require": "./dist/server.cjs" | ||
}, | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"scripts": { | ||
"build": "tsup", | ||
"test": "vitest run test", | ||
"test:watch": "vitest watch test" | ||
}, | ||
"keywords": [ | ||
"media", | ||
"mediaquery", | ||
"query", | ||
"breakpoints", | ||
"responsive", | ||
"solid", | ||
"primitives" | ||
], | ||
"devDependencies": { | ||
"c8": "^7.11.0", | ||
"jsdom": "^19.0.0", | ||
"prettier": "^2.0.5", | ||
"solid-testing-library": "^0.2.0", | ||
"tslib": "^2.0.1", | ||
"tsup": "^5.10.3", | ||
"typescript": "^4.0.2", | ||
"vite-plugin-solid": "^2.2.6", | ||
"vitest": "^0.7.4" | ||
}, | ||
"peerDependencies": { | ||
"solid-js": "^1.3.1" | ||
}, | ||
"contributors": [ | ||
{ | ||
"name": "Aditya Agarwal", | ||
"email": "adityaa803@gmail.com", | ||
"url": "https://devadi.netlify.app" | ||
} | ||
] | ||
"name": "@solid-primitives/media", | ||
"version": "1.3.0", | ||
"description": "Primitives for media query and device features", | ||
"author": "David Di Biase <dave.dibiase@gmail.com>", | ||
"contributors": [ | ||
{ | ||
"name": "Aditya Agarwal", | ||
"email": "adityaa803@gmail.com", | ||
"url": "https://devadi.netlify.app" | ||
} | ||
], | ||
"license": "MIT", | ||
"homepage": "https://github.com/solidjs-community/solid-primitives/tree/main/packages/media", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/solidjs-community/solid-primitives.git" | ||
}, | ||
"primitive": { | ||
"name": "media", | ||
"stage": 3, | ||
"list": [ | ||
"createMediaQuery", | ||
"createBreakpoints" | ||
], | ||
"category": "Display & Media" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"private": false, | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "./dist/server.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
"node": { | ||
"import": "./dist/server.js", | ||
"require": "./dist/server.cjs" | ||
}, | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"scripts": { | ||
"start": "vite serve dev --host", | ||
"dev": "yarn start", | ||
"build": "tsup", | ||
"test": "vitest run test", | ||
"test:watch": "vitest watch test" | ||
}, | ||
"keywords": [ | ||
"media", | ||
"mediaquery", | ||
"query", | ||
"breakpoints", | ||
"responsive", | ||
"solid", | ||
"primitives" | ||
], | ||
"devDependencies": { | ||
"c8": "^7.11.0", | ||
"jsdom": "^19.0.0", | ||
"prettier": "^2.0.5", | ||
"solid-testing-library": "^0.2.0", | ||
"tslib": "^2.0.1", | ||
"tsup": "^5.10.3", | ||
"typescript": "^4.0.2", | ||
"vite-plugin-solid": "^2.2.6", | ||
"vitest": "^0.7.4" | ||
}, | ||
"peerDependencies": { | ||
"solid-js": "^1.3.1" | ||
} | ||
} |
@@ -0,1 +1,5 @@ | ||
<p> | ||
<img width="100%" src="https://assets.solidjs.com/banner?type=Primitives&background=tiles&project=Media" alt="Solid Primitives Media"> | ||
</p> | ||
# @solid-primitives/media | ||
@@ -6,3 +10,3 @@ | ||
[![size](https://img.shields.io/npm/v/@solid-primitives/media?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/media) | ||
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fdavedbase%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-3.json)](https://github.com/davedbase/solid-primitives#contribution-process) | ||
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-3.json)](https://github.com/solidjs-community/solid-primitives#contribution-process) | ||
@@ -9,0 +13,0 @@ Collection of reactive primitives to deal with media queries. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
121
16899
308