Skip to content

Commit

Permalink
Update dependencies. Fixes #276
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Nov 16, 2023
1 parent b0a3db1 commit d558e37
Show file tree
Hide file tree
Showing 20 changed files with 949 additions and 842 deletions.
11 changes: 11 additions & 0 deletions .changeset/hot-owls-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@solid-devtools/extension': patch
'@solid-devtools/debugger': patch
'@solid-devtools/frontend': patch
'@solid-devtools/overlay': patch
'@solid-devtools/logger': patch
'@solid-devtools/theme': patch
'solid-devtools': patch
---

Update dependencies. Fixes #276
8 changes: 4 additions & 4 deletions examples/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"preview": "vite preview"
},
"devDependencies": {
"@babel/plugin-syntax-typescript": "^7.22.5",
"@unocss/preset-typography": "^0.57.1",
"@babel/plugin-syntax-typescript": "^7.23.3",
"@unocss/preset-typography": "^0.57.4",
"solid-devtools": "workspace:^",
"unocss": "^0.57.1",
"vite-plugin-inspect": "^0.7.41"
"unocss": "^0.57.4",
"vite-plugin-inspect": "^0.7.42"
},
"dependencies": {
"@solid-devtools/debugger": "workspace:^",
Expand Down
8 changes: 4 additions & 4 deletions examples/start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"type": "module",
"main": "./dist/index.js",
"devDependencies": {
"solid-start-node": "^0.3.9"
"solid-start-node": "^0.3.10"
},
"dependencies": {
"@solid-devtools/overlay": "workspace:^",
"@solidjs/meta": "^0.29.1",
"@solidjs/router": "^0.8.3",
"@solidjs/router": "^0.9.1",
"solid-devtools": "workspace:^",
"solid-start": "^0.3.9",
"undici": "^5.27.0"
"solid-start": "^0.3.10",
"undici": "^5.27.2"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion examples/vite-plugin-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"vite-plugin-ssr": "0.4.142"
},
"devDependencies": {
"vite-plugin-inspect": "^0.7.41"
"vite-plugin-inspect": "^0.7.42"
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,30 @@
"publish": "pnpm run build && pnpm run changeset publish"
},
"devDependencies": {
"@solid-devtools/theme": "file:packages/theme",
"@changesets/cli": "^2.26.2",
"@playwright/test": "^1.39.0",
"@solid-devtools/theme": "file:packages/theme",
"@total-typescript/ts-reset": "^0.5.1",
"@types/node": "^20.8.10",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@types/node": "^20.9.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"babel-preset-solid": "^1.8.4",
"cross-env": "^7.0.3",
"esbuild": "^0.19.5",
"esbuild-plugin-solid": "^0.5.0",
"eslint": "^8.52.0",
"eslint": "^8.53.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"jsdom": "^22.1.0",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"prettier": "^3.1.0",
"prettier-plugin-organize-imports": "^3.2.4",
"solid-js": "^1.8.5",
"tsup": "^7.2.0",
"tsup-preset-solid": "^2.1.0",
"tsx": "^3.14.0",
"tsx": "^4.1.2",
"turbo": "^1.10.16",
"typescript": "^5.2.2",
"unocss": "^0.57.1",
"unocss": "^0.57.4",
"vite": "4.5.0",
"vite-plugin-solid": "^2.7.2",
"vitest": "^0.34.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"test:types": "tsc --noEmit --paths null"
},
"dependencies": {
"@nothing-but/utils": "~0.11.1",
"@nothing-but/utils": "~0.12.0",
"@solid-devtools/shared": "workspace:^",
"@solid-primitives/bounds": "^0.0.118",
"@solid-primitives/cursor": "^0.0.112",
Expand Down
4 changes: 2 additions & 2 deletions packages/debugger/src/inspector/inspector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Misc } from '@nothing-but/utils'
import { misc } from '@nothing-but/utils'
import { untrackedCallback } from '@solid-devtools/shared/primitives'
import { parseLocationString } from '../locator'
import { NodeType, ValueItemType } from '../main/constants'
Expand Down Expand Up @@ -253,7 +253,7 @@ function mapProps(props: Solid.Component['props']) {
value: encodeValue(desc.value, false),
}
// non-object props cannot be inspected (won't ever change and aren't deep)
if (Array.isArray(desc.value) || Misc.is_plain_object(desc.value))
if (Array.isArray(desc.value) || misc.is_plain_object(desc.value))
ValueMap.add(id, () => desc.value)
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@crxjs/vite-plugin": "2.0.0-beta.21",
"@types/chrome": "^0.0.248"
"@types/chrome": "^0.0.251"
},
"dependencies": {
"@solid-devtools/debugger": "workspace:^",
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"test:types": "tsc --noEmit"
},
"dependencies": {
"@nothing-but/utils": "~0.11.1",
"@solid-devtools/theme": "workspace:^",
"@nothing-but/utils": "~0.12.0",
"@solid-devtools/debugger": "workspace:^",
"@solid-devtools/shared": "workspace:^",
"@solid-devtools/theme": "workspace:^",
"@solid-primitives/context": "^0.2.1",
"@solid-primitives/cursor": "^0.0.112",
"@solid-primitives/date": "^2.0.18",
Expand All @@ -63,7 +63,7 @@
"solid-headless": "^0.13.1"
},
"devDependencies": {
"@unocss/cli": "^0.57.1",
"@unocss/cli": "^0.57.4",
"solid-js": "^1.8.5"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/ui/components/scrollable.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { theme } from '@/ui'
import { Color } from '@nothing-but/utils'
import { color } from '@nothing-but/utils'
import { combineProps } from '@solid-primitives/props'
import clsx from 'clsx'
import * as s from 'solid-js'

const thumb_color = (opacity: number) =>
Color.rgb_to_rgba(Color.hex_to_rgb(theme.colors.gray[500]), opacity).toString()
color.rgb_to_rgba(color.hex_to_rgb(theme.colors.gray[500]), opacity).toString()

export const custom_scrollbar = 'custom_scrollbar'
export const custom_scrollbar_styles = /*css*/ `
Expand Down
10 changes: 5 additions & 5 deletions packages/frontend/src/ui/components/toggle-button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color } from '@nothing-but/utils'
import { color } from '@nothing-but/utils'
import { combineProps } from '@solid-primitives/props'
import clsx from 'clsx'
import * as s from 'solid-js'
Expand All @@ -12,7 +12,7 @@ export const toggle_button_styles = /*css*/ `
display: flex;
align-items: center;
justify-content: center;
--toggle-button-color: ${Color.rgb_value(Color.hex_to_rgb(theme.colors.gray[600]))};
--toggle-button-color: ${color.rgb_value(color.hex_to_rgb(theme.colors.gray[600]))};
--toggle-button-color-opacity: 1;
--toggle-button-bg-opacity: 0;
--toggle-button-border-opacity: 0;
Expand All @@ -33,15 +33,15 @@ export const toggle_button_styles = /*css*/ `
--toggle-button-bg-opacity: 0.05;
}
.toggle-button:is([aria-selected="true"], [aria-expanded="true"]) {
--toggle-button-color: ${Color.rgb_value(Color.hex_to_rgb(theme.colors.cyan[600]))};
--toggle-button-color: ${color.rgb_value(color.hex_to_rgb(theme.colors.cyan[600]))};
--toggle-button-bg-opacity: 0.05;
}
@media (prefers-color-scheme: dark) {
.toggle-button {
--toggle-button-color: ${Color.rgb_value(Color.hex_to_rgb(theme.colors.gray[400]))};
--toggle-button-color: ${color.rgb_value(color.hex_to_rgb(theme.colors.gray[400]))};
}
.toggle-button:is([aria-selected="true"], [aria-expanded="true"]) {
--toggle-button-color: ${Color.rgb_value(Color.hex_to_rgb(theme.colors.cyan[400]))};
--toggle-button-color: ${color.rgb_value(color.hex_to_rgb(theme.colors.cyan[400]))};
}
}
`
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"tsup": "^7.2.0"
},
"dependencies": {
"@nothing-but/utils": "~0.11.1",
"@nothing-but/utils": "~0.12.0",
"@solid-devtools/debugger": "workspace:^",
"@solid-devtools/shared": "workspace:^",
"@solid-primitives/utils": "^6.2.1"
Expand Down
14 changes: 7 additions & 7 deletions packages/logger/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import { Arr } from '@nothing-but/utils'
import { array } from '@nothing-but/utils'
import {
addSolidUpdateListener,
getOwnerType,
Expand Down Expand Up @@ -139,7 +139,7 @@ export function debugComputation(
value => {
const timeElapsed = time()
removeValueUpdateObserver(owner, SYMBOL)
const sources = owner.sources ? Arr.deduped(owner.sources) : []
const sources = owner.sources ? array.deduped(owner.sources) : []

logComputation(getComputationCreatedLabel(typeName, name, timeElapsed), {
owner: { type, typeName, name },
Expand All @@ -156,7 +156,7 @@ export function debugComputation(
}
// if debugComputation after the initial run of the computation
// sources should be observed immediately
else observeSources(owner.sources ? Arr.deduped(owner.sources) : [])
else observeSources(owner.sources ? array.deduped(owner.sources) : [])

// monkey patch the "fn" callback to intercept every computation function execution
interceptComputationRerun(owner, (fn, prev) => {
Expand All @@ -167,7 +167,7 @@ export function debugComputation(
const value = fn()
const elapsedTime = time()

const sources = owner.sources ? Arr.deduped(owner.sources) : []
const sources = owner.sources ? array.deduped(owner.sources) : []
logComputation(getComputationRerunLabel(name, elapsedTime), {
owner: UNUSED,
owned: owner.owned ?? [],
Expand Down Expand Up @@ -320,7 +320,7 @@ export function debugSignal(
state,
value,
prev,
trackObservers ? prevObservers : Arr.deduped(signal.observers!),
trackObservers ? prevObservers : array.deduped(signal.observers!),
)
},
SYMBOL,
Expand All @@ -329,8 +329,8 @@ export function debugSignal(
if (trackObservers) {
// Observers Change
function logObserversChange() {
const observers = Arr.deduped(actualObservers)
if (Arr.includes_same_members(observers, prevObservers)) return
const observers = array.deduped(actualObservers)
if (array.includes_same_members(observers, prevObservers)) return
logObservers(state.name, observers, prevObservers)
prevObservers = [...observers]
actualPrevObservers = [...actualObservers]
Expand Down
4 changes: 2 additions & 2 deletions packages/logger/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// see https://developer.chrome.com/docs/devtools/console/format-style/
// to gen a overview of how to style console messages

import { Arr } from '@nothing-but/utils'
import { array } from '@nothing-but/utils'
import { getNodeName, getNodeType, getOwnerType, isSolidMemo } from '@solid-devtools/debugger'
import { NODE_TYPE_NAMES, NodeType, Solid, UNKNOWN } from '@solid-devtools/debugger/types'
import { getDiffMap, getStackDiffMap } from './utils'
Expand Down Expand Up @@ -206,7 +206,7 @@ export function logOwned(
)

logOwnersDiff(prevOwned, owned, 'stack', owner => {
const sources = owner.sources ? Arr.deduped(owner.sources) : []
const sources = owner.sources ? array.deduped(owner.sources) : []
const usesPrev = !!owner.fn.length
const usesValue = usesPrev || isSolidMemo(owner)
logComputationDetails({
Expand Down
24 changes: 12 additions & 12 deletions packages/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,25 +100,25 @@
},
"devDependencies": {
"@babel/core": "^7.18.13",
"@babel/generator": "^7.23.0",
"@babel/parser": "^7.23.0",
"@babel/plugin-syntax-jsx": "^7.22.5",
"@babel/traverse": "^7.23.2",
"@types/babel__core": "^7.20.3",
"@types/babel__generator": "^7.6.6",
"@types/babel__traverse": "^7.20.3",
"solid-start": "^0.3.9"
"@babel/generator": "^7.23.3",
"@babel/parser": "^7.23.3",
"@babel/plugin-syntax-jsx": "^7.23.3",
"@babel/traverse": "^7.23.3",
"@types/babel__core": "^7.20.4",
"@types/babel__generator": "^7.6.7",
"@types/babel__traverse": "^7.20.4",
"solid-start": "^0.3.10"
},
"dependencies": {
"@babel/core": "^7.23.2",
"@babel/plugin-syntax-typescript": "^7.22.5",
"@babel/types": "^7.23.0",
"@babel/core": "^7.23.3",
"@babel/plugin-syntax-typescript": "^7.23.3",
"@babel/types": "^7.23.3",
"@solid-devtools/debugger": "workspace:^",
"@solid-devtools/shared": "workspace:^"
},
"peerDependencies": {
"solid-js": "^1.8.0",
"solid-start": "^0.2.20",
"solid-start": "^0.3.0",
"vite": "^2.2.3 || ^3.0.0 || ^4.0.0"
},
"peerDependenciesMeta": {
Expand Down
6 changes: 3 additions & 3 deletions packages/overlay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"test:types": "tsc --noEmit --paths null"
},
"dependencies": {
"@nothing-but/utils": "~0.11.1",
"@nothing-but/utils": "~0.12.0",
"@solid-devtools/debugger": "workspace:^",
"@solid-devtools/frontend": "workspace:^",
"@solid-devtools/shared": "workspace:^",
Expand All @@ -61,10 +61,10 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@types/clean-css": "^4.2.9",
"@types/clean-css": "^4.2.10",
"chokidar": "^3.5.3",
"clean-css": "^5.3.2",
"solid-js": "^1.8.5",
"tsx": "^3.14.0"
"tsx": "^4.1.2"
}
}
4 changes: 2 additions & 2 deletions packages/overlay/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@solid-devtools/debugger/setup'

import { Num } from '@nothing-but/utils'
import { num } from '@nothing-but/utils'
import { useDebugger } from '@solid-devtools/debugger/bundled'
import { Icon, MountIcons } from '@solid-devtools/frontend'
import { useIsMobile, useIsTouch } from '@solid-devtools/shared/primitives'
Expand Down Expand Up @@ -63,7 +63,7 @@ const Overlay: Component<{
makeEventListener(window, 'pointermove', e => {
if (!dragging()) return
const vh = window.innerHeight
setProgress(1 - Num.clamp(e.y, 0, vh - 300) / vh)
setProgress(1 - num.clamp(e.y, 0, vh - 300) / vh)
})
makeEventListener(window, 'pointerup', setDragging.bind(void 0, false))

Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test:types": "tsc --noEmit"
},
"dependencies": {
"@nothing-but/utils": "~0.11.1"
"@nothing-but/utils": "~0.12.0"
},
"packageManager": "[email protected]",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// colors: https://github.com/tailwindlabs/tailwindcss/blob/master/src/public/colors.js
// spacing and other values: https://github.com/tailwindlabs/tailwindcss/blob/master/stubs/defaultConfig.stub.js

import { Misc } from '@nothing-but/utils'
import { misc } from '@nothing-but/utils'
import type { Prettify, UnionToIntersection } from '@nothing-but/utils/types'

const cyan = {
Expand Down Expand Up @@ -130,7 +130,7 @@ export type Spacing = Prettify<
>
>

export const spacing = Misc.keys(raw_spacing_with_custom).reduce(
export const spacing = misc.keys(raw_spacing_with_custom).reduce(
(acc, key) => {
const value = raw_spacing_with_custom[key]
acc[key] = value
Expand Down
Loading

0 comments on commit d558e37

Please sign in to comment.