Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: t3-oss/create-t3-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: [email protected]
Choose a base ref
...
head repository: t3-oss/create-t3-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 569 changed files with 48,736 additions and 9,102 deletions.
5 changes: 3 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "next",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["@ct3a/www"]
"ignore": ["@ct3a/www", "@ct3a/upgrade"],
"changedFilePatterns": ["src/**", "template/**"]
}
5 changes: 5 additions & 0 deletions .changeset/gold-beans-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

fix: cli cancel not working
5 changes: 5 additions & 0 deletions .changeset/itchy-apricots-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

fix: simplify session user check in protected procedures
5 changes: 5 additions & 0 deletions .changeset/thin-hats-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

start-database.sh script gets DB_NAME and DB_CONTAINER_NAME based off of DATABASE_URL in .env
73 changes: 73 additions & 0 deletions .codesandbox/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
// These tasks will run in order when initializing your CodeSandbox project.
"setupTasks": [
{
"name": "Install Dependencies",
"command": "pnpm install"
}
],

// These tasks can be run from CodeSandbox. Running one will open a log in the app.
"tasks": {
"typecheck": {
"name": "typecheck",
"command": "pnpm typecheck",
"runAtStart": false
},
"build:cli": {
"name": "build:cli",
"command": "pnpm build:cli",
"runAtStart": false
},
"build:www": {
"name": "build:www",
"command": "pnpm build:www",
"runAtStart": false
},
"build": {
"name": "build",
"command": "pnpm build",
"runAtStart": false
},
"start:cli": {
"name": "start:cli",
"command": "pnpm start:cli",
"runAtStart": false
},
"start:www": {
"name": "start:www",
"command": "pnpm start:www",
"runAtStart": false
},
"dev:cli": {
"name": "dev:cli",
"command": "pnpm dev:cli",
"runAtStart": false
},
"dev:www": {
"name": "dev:www",
"command": "pnpm dev:www",
"runAtStart": true
},
"clean": {
"name": "clean",
"command": "pnpm clean",
"runAtStart": false
},
"lint": {
"name": "lint",
"command": "pnpm lint",
"runAtStart": false
},
"format": {
"name": "format",
"command": "pnpm format",
"runAtStart": false
},
"format:check": {
"name": "format:check",
"command": "pnpm format:check",
"runAtStart": false
}
}
}
57 changes: 40 additions & 17 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,27 +1,50 @@
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
plugins: ["unicorn", "turbo"],
/** @type {import("eslint").Linter.Config} */
const config = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["isaacscript", "import"],
extends: [
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaVersion: "latest", // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of import
project: "./tsconfig.eslint.json", // Allows for the use of rules which require parserServices to be generated
ecmaVersion: "latest",
sourceType: "module",
tsconfigRootDir: __dirname,
projectService: true,
},
overrides: [
// Template files don't have reliable type information
{
files: ["./cli/template/**/*.{ts,tsx}"],
extends: ["plugin:@typescript-eslint/disable-type-checked"],
},
],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "error",
"unicorn/filename-case": [
// These off/not-configured-the-way-we-want lint rules we like & opt into
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", destructuredArrayIgnorePattern: "^_" },
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
case: "camelCase",
},
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
],
"prettier/prettier": ["error", { endOfLine: "auto" }],
"import/consistent-type-specifier-style": ["error", "prefer-inline"],

// For educational purposes we format our comments/jsdoc nicely
"isaacscript/complete-sentences-jsdoc": "warn",
"isaacscript/format-jsdoc-comments": "warn",

// These lint rules don't make sense for us but are enabled in the preset configs
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/restrict-template-expressions": "off",

// This rule doesn't seem to be working properly
"@typescript-eslint/prefer-nullish-coalescing": "off",
},
};

module.exports = config;
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# mdx
*.mdx linguist-detectable=false
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners

* @juliusmarminge @nexxeln @TheoBr @c-ehrlich
* @juliusmarminge @nexxeln @t3dotgg @c-ehrlich
8 changes: 7 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,13 @@ body:
- type: textarea
attributes:
label: Describe the bug
description: A clear and consice description of the bug, as well as what you expected to happen when encountering it.
description: A clear and concise description of the bug, as well as what you expected to happen when encountering it.
validations:
required: true
- type: input
attributes:
label: Reproduction repo
description: If applicable, please provide a link to a reproduction repo or a Stackblitz / CodeSandbox project. Your issue may be closed if this is not provided and we are unable to reproduce the issue. If your bug is a documentaion issue, link the appropriate page.
validations:
required: true
- type: textarea
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ body:
required: true
- type: textarea
attributes:
label: Desribe alternate solutions
label: Describe alternate solutions
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
14 changes: 14 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Setup and install"
description: "Common setup steps for Actions"

runs:
using: composite
steps:
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- shell: bash
run: pnpm install
3 changes: 2 additions & 1 deletion .github/version-script-beta.js
Original file line number Diff line number Diff line change
@@ -11,7 +11,8 @@ try {
console.log(err);
process.exit(1);
}
pkg.version = "6.0.0-beta." + stdout.trim();
const [major, minor, patch] = pkg.version.split(".").map(Number);
pkg.version = `${major}.${minor}.${patch + 1}-beta.${stdout.trim()}`;
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, "\t") + "\n");
});
} catch (error) {
3 changes: 2 additions & 1 deletion .github/version-script-next.js
Original file line number Diff line number Diff line change
@@ -11,7 +11,8 @@ try {
console.log(err);
process.exit(1);
}
pkg.version = "6.0.0-next." + stdout.trim();
const [major, minor, patch] = pkg.version.split(".").map(Number);
pkg.version = `${major}.${minor}.${patch + 1}-next.${stdout.trim()}`;
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, "\t") + "\n");
});
} catch (error) {
Loading