Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 0 additions & 33 deletions .babelrc

This file was deleted.

19 changes: 19 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-typescript",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
}
2 changes: 2 additions & 0 deletions .changelog/01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
breaking
Rewrite to typescript. New opts required. Newer versions of React required
2 changes: 2 additions & 0 deletions .changelog/02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
breaking
Remove main, module, and require fields from package.json
2 changes: 2 additions & 0 deletions .changelog/03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feature
Re-implement <Parcel /> component
2 changes: 2 additions & 0 deletions .changelog/04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
feature
Support for hydrateRoot
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/config.json

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc

This file was deleted.

83 changes: 0 additions & 83 deletions .github/workflows/build-test-release.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build, Test, Release

on:
push:
branches: main
pull_request:
branches: "*"

jobs:
build_lint_test:
name: Build and Test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm test

- name: Validate
run: |
pnpm run check-format

- name: Build
run: pnpm run build
6 changes: 2 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm pretty-quick --staged && pnpm run test && pnpm run lint
pnpm pretty-quick --staged
pnpm run test
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
### Major Changes

- [#197](https://github.com/single-spa/single-spa-react/pull/197) [`1141959`](https://github.com/single-spa/single-spa-react/commit/1141959915c3a0073623e589b1eebd0891876745) Thanks [@MilanKovacic](https://github.com/MilanKovacic)! - ### Fixed

- Enhanced compatibility with various bundlers and TypeScript `moduleResolution` strategies. The package's export patterns have been refined to address issues previously encountered with different bundling tools, ensuring more consistent and reliable integration across diverse build environments. Additionally, TypeScript type definitions have been improved, enhancing type safety and developer experience in varied TypeScript setups.

### BREAKING CHANGES

- The changes in export patterns / types may require updates in how projects import from `single-spa-react/*`.

### Patch Changes
Expand Down
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
The MIT License (MIT)

Copyright (c) 2015 Joel Denning
Copyright (c) 2025 Jolyn Denning

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 0 additions & 20 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { Config } from "jest";

const config: Config = {
extensionsToTreatAsEsm: [".ts", ".tsx"],
testEnvironment: "jsdom",
};

export default config;
1 change: 0 additions & 1 deletion jest.setup.js

This file was deleted.

Loading