Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
edd3256
Rewrite build script
thetarnav Sep 27, 2024
4b13c7c
Improve build script
thetarnav Sep 27, 2024
fd3b304
Improve build script to work from a single package
thetarnav Sep 29, 2024
7392329
Don't rebuild packages that don't need it
thetarnav Sep 29, 2024
72e22d8
Correct fields in package.json files
thetarnav Sep 29, 2024
4542af4
Remove turbo badges
thetarnav Sep 29, 2024
30949cc
Add changeset
thetarnav Sep 29, 2024
dfc007b
Rewrite build script
thetarnav Sep 27, 2024
9d6aacf
Improve build script
thetarnav Sep 27, 2024
30df6dc
Improve build script to work from a single package
thetarnav Sep 29, 2024
37c66b0
Don't rebuild packages that don't need it
thetarnav Sep 29, 2024
56d83d6
Correct fields in package.json files
thetarnav Sep 29, 2024
a99f51a
Remove turbo badges
thetarnav Sep 29, 2024
ea09f71
Add changeset
thetarnav Sep 29, 2024
780c111
Write tsconfigs with project references
thetarnav Jan 4, 2025
ab6d4d5
Update tsconfigs
thetarnav Jan 4, 2025
55b94e9
Update tsconfigs
thetarnav Jan 4, 2025
b62866d
Update tsconfigs
thetarnav Jan 4, 2025
5621e2d
remove CJS support from docs
atk Jan 15, 2025
ab028de
Add update-tsconfigs script and integrate it into prepare step
thetarnav Jan 20, 2025
3564198
Merge remote-tracking branch 'origin/main' into new-build
thetarnav Jan 20, 2025
60973dd
Write new simpler build script
thetarnav Jan 20, 2025
b158985
Update package.json scripts and template tsconfig.json
thetarnav Jan 20, 2025
7ebd210
Remove Turborepo badge from README and update README generation script
thetarnav Jan 20, 2025
dae3b77
Prevent prettier from formatting the generated tsconfig files
thetarnav Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .changeset/ninety-glasses-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
"@solid-primitives/intersection-observer": minor
"@solid-primitives/broadcast-channel": minor
"@solid-primitives/mutation-observer": minor
"@solid-primitives/controlled-props": minor
"@solid-primitives/event-dispatcher": minor
"@solid-primitives/transition-group": minor
"@solid-primitives/page-visibility": minor
"@solid-primitives/resize-observer": minor
"@solid-primitives/signal-builders": minor
"@solid-primitives/active-element": minor
"@solid-primitives/event-listener": minor
"@solid-primitives/jsx-tokenizer": minor
"@solid-primitives/script-loader": minor
"@solid-primitives/state-machine": minor
"@solid-primitives/connectivity": minor
"@solid-primitives/static-store": minor
"@solid-primitives/destructure": minor
"@solid-primitives/event-props": minor
"@solid-primitives/geolocation": minor
"@solid-primitives/filesystem": minor
"@solid-primitives/flux-store": minor
"@solid-primitives/fullscreen": minor
"@solid-primitives/input-mask": minor
"@solid-primitives/pagination": minor
"@solid-primitives/permission": minor
"@solid-primitives/analytics": minor
"@solid-primitives/autofocus": minor
"@solid-primitives/clipboard": minor
"@solid-primitives/event-bus": minor
"@solid-primitives/immutable": minor
"@solid-primitives/lifecycle": minor
"@solid-primitives/scheduled": minor
"@solid-primitives/selection": minor
"@solid-primitives/websocket": minor
"@solid-primitives/gestures": minor
"@solid-primitives/keyboard": minor
"@solid-primitives/platform": minor
"@solid-primitives/presence": minor
"@solid-primitives/resource": minor
"@solid-primitives/rootless": minor
"@solid-primitives/context": minor
"@solid-primitives/devices": minor
"@solid-primitives/graphql": minor
"@solid-primitives/history": minor
"@solid-primitives/masonry": minor
"@solid-primitives/mutable": minor
"@solid-primitives/pointer": minor
"@solid-primitives/promise": minor
"@solid-primitives/storage": minor
"@solid-primitives/trigger": minor
"@solid-primitives/virtual": minor
"@solid-primitives/workers": minor
"@solid-primitives/bounds": minor
"@solid-primitives/cursor": minor
"@solid-primitives/marker": minor
"@solid-primitives/scroll": minor
"@solid-primitives/spring": minor
"@solid-primitives/stream": minor
"@solid-primitives/styles": minor
"@solid-primitives/upload": minor
"@solid-primitives/audio": minor
"@solid-primitives/fetch": minor
"@solid-primitives/keyed": minor
"@solid-primitives/media": minor
"@solid-primitives/mouse": minor
"@solid-primitives/props": minor
"@solid-primitives/range": minor
"@solid-primitives/share": minor
"@solid-primitives/start": minor
"@solid-primitives/timer": minor
"@solid-primitives/tween": minor
"@solid-primitives/utils": minor
"@solid-primitives/date": minor
"@solid-primitives/deep": minor
"@solid-primitives/i18n": minor
"@solid-primitives/idle": minor
"@solid-primitives/list": minor
"@solid-primitives/memo": minor
"@solid-primitives/refs": minor
"@solid-primitives/map": minor
"@solid-primitives/raf": minor
"@solid-primitives/set": minor
---

Remove CJS support. The package is ESM only now.
8 changes: 0 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ jobs:
- name: Install Dependencies
run: pnpm i

- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: node_modules/.cache/turbo
key: turbo-${{ github.sha }}
restore-keys: |
turbo-

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: node_modules/.cache/turbo
key: turbo-${{ github.sha }}
restore-keys: |
turbo-

- name: Build all packages
run: pnpm build

Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ temp/

tsup.config.bundled*.mjs

# turbo
.turbo

# vite
vite.config.ts.js
vitest.config.ts.timestamp-*.mjs
Expand Down
22 changes: 22 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

node_modules/
dist/
assets

# TypeScript cache
*.tsbuildinfo

.vscode

# Temporary folders
tmp/
temp/
_temp_*

_generated

.netlify
.vinxi
.idea

tsconfig.json
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ All our primitives are meant to be consistent and sustain a level of quality. We
9. Be focused on composition vs. isolation of logic
10. Community voice and needs guide road map and planning
11. Strong TypeScript support
12. Support for both CJS and ESM
12. ESM (no more CJS support)
13. Solid performance!

## Basic and Compound Primitives
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

# Solid Primitives

[![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?style=for-the-badge&logo=pnpm)](https://pnpm.io/)
[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)<!-- INSERT-NPM-DOWNLOADS-BADGE:START -->
[![pnpm](https://img.shields.io/badge/maintained%20with-pnpm-cc00ff.svg?style=for-the-badge&logo=pnpm)](https://pnpm.io/)<!-- INSERT-NPM-DOWNLOADS-BADGE:START -->
[![combined-downloads](https://img.shields.io/endpoint?style=for-the-badge&url=https://combined-npm-downloads.deno.dev/@solid-primitives/utils,@solid-primitives/broadcast-channel,@solid-primitives/context,@solid-primitives/cookies,@solid-primitives/devices,@solid-primitives/event-dispatcher,@solid-primitives/event-props,@solid-primitives/fetch,@solid-primitives/filesystem,@solid-primitives/flux-store,@solid-primitives/i18n,@solid-primitives/idle,@solid-primitives/input-mask,@solid-primitives/keyed,@solid-primitives/lifecycle,@solid-primitives/list,@solid-primitives/marker,@solid-primitives/mutable,@solid-primitives/permission,@solid-primitives/platform,@solid-primitives/resource,@solid-primitives/scheduled,@solid-primitives/script-loader,@solid-primitives/selection,@solid-primitives/share,@solid-primitives/spring,@solid-primitives/state-machine,@solid-primitives/timer,@solid-primitives/transition-group,@solid-primitives/tween,@solid-primitives/websocket,@solid-primitives/workers)](https://dash.deno.com/playground/combined-npm-downloads)
<!-- INSERT-NPM-DOWNLOADS-BADGE:END -->

Expand Down
4 changes: 2 additions & 2 deletions configs/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import * as utils from "../scripts/utils/index.js"
const package_name = utils.getPackageNameFromCWD()

if (package_name == null) {
utils.logLine("Testing ALL packages...")
utils.log_info("Testing ALL packages...")
} else {
utils.logLine("Testing "+package_name+" package...")
utils.log_info("Testing "+package_name+" package...")
}

const from_root = package_name == null
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,31 @@
"type": "module",
"scripts": {
"dev": "pnpm -dir site run dev",
"format": "prettier --cache -w {site,packages,scripts,template}/**/*.{js,ts,json,css,tsx,jsx,md,html} --ignore-path .gitignore",
"format": "prettier --cache -w {site,packages,scripts,template}/**/*.{js,ts,json,css,tsx,jsx,md,html}",
"lint:packages": "eslint --max-warnings 0 \"packages/*/src/**/*\"",
"lint:tests": "eslint \"packages/*/test/**\" --rule \"no-only-tests/no-only-tests: error\"",
"lint": "pnpm run \"/^lint:.*/\"",
"test:client": "vitest -c ./configs/vitest.config.ts",
"test:ssr": "pnpm run test:client --mode ssr",
"test": "pnpm run test:client && pnpm run test:ssr",
"build:ci": "turbo run build --filter='./packages/*'",
"build": "pnpm run build:ci --concurrency=50%",
"build": "tsx ./scripts/build.ts",
"new-package": "tsx ./scripts/new-package.ts",
"update-readme": "tsx ./scripts/update-readme.ts",
"update-tsconfigs": "tsx ./scripts/update-tsconfigs.ts",
"measure": "tsx ./scripts/measure.ts",
"version": "changeset version && pnpm i --no-frozen-lockfile && git add .",
"release": "pnpm build && changeset publish"
"release": "pnpm build && changeset publish",
"postinstall": "pnpm update-tsconfigs"
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@solidjs/start": "^1.0.6",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.5.4",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"esbuild": "^0.19.11",
"esbuild-plugin-solid": "^0.6.0",
"eslint": "^9.10.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-no-only-tests": "^3.3.0",
Expand All @@ -46,18 +49,15 @@
"rehype-slug": "^6.0.0",
"remark-gfm": "^4.0.0",
"solid-js": "^1.8.22",
"@solidjs/start": "^1.0.6",
"tsup": "^8.2.4",
"tsup-preset-solid": "^2.2.0",
"tsx": "^4.19.1",
"turbo": "^1.12.5",
"vinxi": "^0.4.2",
"vite-plugin-solid": "^2.10.2",
"typescript": "~5.6.2",
"valibot": "^0.20.1",
"vinxi": "^0.4.2",
"vite": "5.4.4",
"vite-plugin-solid": "^2.10.2",
"vitest": "^2.1.0"
},
"packageManager": "[email protected]",
"engines": {"node": ">=20.0.0"}
"engines": {
"node": ">=20.0.0"
}
}
1 change: 0 additions & 1 deletion packages/active-element/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# @solid-primitives/active-element

[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/active-element?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/active-element)
[![size](https://img.shields.io/npm/v/@solid-primitives/active-element?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/active-element)
[![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)
Expand Down
5 changes: 0 additions & 5 deletions packages/active-element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"dist"
],
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"browser": {},
"types": "./dist/index.d.ts",
Expand All @@ -36,10 +35,6 @@
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"scripts": {
Expand Down
20 changes: 17 additions & 3 deletions packages/active-element/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
{
"extends": "../../tsconfig.json",
"include": ["./src", "./test", "./dev", "./demo"],
"exclude": ["node_modules", "./dist"]
}
"compilerOptions": {
"composite": true,
"outDir": "dist",
"rootDir": "src"
},
"references": [
{
"path": "../event-listener"
},
{
"path": "../utils"
}
],
"include": [
"src"
]
}
1 change: 0 additions & 1 deletion packages/analytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Category: Utilities

# @solid-primitives/analytics

[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
[![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-0.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)

Creates a primitive for analytics management.
Expand Down
5 changes: 0 additions & 5 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@
"url": "https://github.com/solidjs-community/solid-primitives/tree/main/packages/analytics"
},
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"browser": {},
"types": "./dist/index.d.ts",
"exports": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"files": [
Expand Down
13 changes: 11 additions & 2 deletions packages/analytics/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "../../tsconfig.json"
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "dist",
"rootDir": "src"
},
"references": [],
"include": [
"src"
]
}
1 change: 0 additions & 1 deletion packages/audio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# @solid-primitives/audio

[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/audio?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/audio)
[![size](https://img.shields.io/npm/v/@solid-primitives/audio?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/audio)
[![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)
Expand Down
5 changes: 0 additions & 5 deletions packages/audio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"private": false,
"sideEffects": false,
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"browser": {},
"types": "./dist/index.d.ts",
Expand All @@ -34,10 +33,6 @@
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"typesVersions": {},
Expand Down
20 changes: 18 additions & 2 deletions packages/audio/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{
"extends": "../../tsconfig.json"
}
"extends": "../../tsconfig.json",
"compilerOptions": {
"composite": true,
"outDir": "dist",
"rootDir": "src"
},
"references": [
{
"path": "../static-store"
},
{
"path": "../utils"
}
],
"include": [
"src"
]
}
1 change: 0 additions & 1 deletion packages/autofocus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

# @solid-primitives/autofocus

[![turborepo](https://img.shields.io/badge/built%20with-turborepo-cc00ff.svg?style=for-the-badge&logo=turborepo)](https://turborepo.org/)
[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/autofocus?style=for-the-badge&label=size)](https://bundlephobia.com/package/@solid-primitives/autofocus)
[![version](https://img.shields.io/npm/v/@solid-primitives/autofocus?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/autofocus)
[![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-1.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)
Expand Down
Loading
Loading