simplestyle-js 4.1.3 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,8 +9,8 @@ Object.defineProperty(exports, "useCreateStyles", {
9
9
  }
10
10
  });
11
11
  const _react = require("react");
12
- const _createStyles = /*#__PURE__*/ _interop_require_default(require("../createStyles.cjs"));
13
- const _index = require("../util/index.cjs");
12
+ const _createStyles = /*#__PURE__*/ _interop_require_default(require("..\createStyles.cjs"));
13
+ const _index = require("..\util\index.cjs");
14
14
  function _interop_require_default(obj) {
15
15
  return obj && obj.__esModule ? obj : {
16
16
  default: obj
@@ -1,6 +1,6 @@
1
1
  import { useEffect, useMemo, useRef, useState } from 'react';
2
- import createStyles from '../createStyles.mjs';
3
- import { deepEqual } from '../util/index.mjs';
2
+ import createStyles from '..\createStyles.mjs';
3
+ import { deepEqual } from '..\util\index.mjs';
4
4
  export function useCreateStyles(ruleId, rules, options) {
5
5
  // cache rules to compare later
6
6
  const [cachedRules, setCachedRules] = useState(()=>rules);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplestyle-js",
3
- "version": "4.1.3",
3
+ "version": "4.2.0",
4
4
  "description": "An incredibly straightforward and simple CSS-in-JS solution with zero runtime dependencies, and out-of-the-box TypeScript support",
5
5
  "type": "module",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "postcss": "^8.5.6",
48
48
  "react": ">=18",
49
49
  "react-dom": ">=18",
50
- "@better-builds/ts-duality": "latest",
50
+ "@better-builds/ts-duality": "^0.6.0",
51
51
  "typescript": "^5.9.3",
52
52
  "vite": "^7.2.6",
53
53
  "vitest": "^4.0.14"
@@ -175,4 +175,4 @@
175
175
  "module": "./dist/esm/index.mjs",
176
176
  "types": "./dist/cjs/index.d.ts",
177
177
  "main": "./dist/cjs/index.cjs"
178
- }
178
+ }