Skip to content

Commit

Permalink
Revert "Feature/v1.19.0" (#114)
Browse files Browse the repository at this point in the history
Revert "Feature/v1.19.0 (#113)"

This reverts commit 744b517.
  • Loading branch information
alfonsograziano committed Aug 28, 2024
1 parent 744b517 commit 1e38843
Show file tree
Hide file tree
Showing 1,658 changed files with 10,869 additions and 36,847 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ dump.rdb
.devcontainer
.github
.husky
.parcel-cache
.vscode
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,3 @@ jobs:
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -F run_id=${{ github.run_id }}

alteration-compatibility-conclusion:
needs: run-logto
runs-on: ubuntu-latest
if: always() && (needs.run-logto.result == 'success' || needs.run-logto.result == 'skipped')
steps:
- name: Conclusion
run: echo "Alteration compatibility integration test completed successfully"
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,12 @@ jobs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

- name: Build
run: pnpm ci:build

main-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5

- name: Prepack
run: pnpm prepack

- name: Check
run: pnpm -r check

main-lint:
runs-on: ubuntu-latest

Expand All @@ -47,6 +34,8 @@ jobs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

- name: Prepack
run: pnpm prepack
Expand All @@ -65,6 +54,8 @@ jobs:

- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v5
with:
pnpm-version: 9

- name: Build for test
run: pnpm -r build:test
Expand Down
6 changes: 6 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Hoist for Parcel
public-hoist-pattern[]=@parcel/*
public-hoist-pattern[]=postcss
public-hoist-pattern[]=process
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=buffer
4 changes: 2 additions & 2 deletions .scripts/compare-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ const queryDatabaseManifest = async (database) => {
`);

const { rows: constraints } = await pool.query(/* sql */`
select conrelid::regclass as r_table, con.*, pg_get_constraintdef(con.oid) as def
select conrelid::regclass AS table, con.*, pg_get_constraintdef(con.oid)
from pg_catalog.pg_constraint con
inner join pg_catalog.pg_class rel
on rel.oid = con.conrelid
inner join pg_catalog.pg_namespace nsp
on nsp.oid = connamespace
where nsp.nspname = 'public'
order by conname asc, def asc;
order by conname asc;
`);

const { rows: indexes } = await pool.query(/* sql */`
Expand Down
2 changes: 1 addition & 1 deletion .scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi

# Some node packages use `src` as their dist folder, so ignore them from the rm list in the end
find \
.git .changeset .devcontainer .github .husky .scripts .vscode pnpm-*.yaml *.js \
.git .changeset .devcontainer .github .husky .parcel-cache .scripts .vscode pnpm-*.yaml *.js \
packages/**/src \
packages/**/*.config.js packages/**/*.config.ts packages/**/tsconfig*.json \
! -path '**/node_modules/**' \
Expand Down
3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"topbar",
"upsell",
"withtyped",
"backchannel",
"deepmerge"
"backchannel"
]
}
2 changes: 1 addition & 1 deletion .vscode/tsx.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scope": "javascriptreact,typescriptreact",
"prefix": "isc",
"body": [
"import styles from './index.module.scss';",
"import * as styles from './index.module.scss';",
"$0"
],
"description": "Import SCSS styles from the same directory."
Expand Down
11 changes: 0 additions & 11 deletions AWESOME.md

This file was deleted.

3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apk add --no-cache python3 make g++ rsync
COPY . .

### Install dependencies and build ###
RUN node .scripts/update-parcelrc.js
RUN pnpm i

### Set if dev features enabled ###
Expand All @@ -38,7 +39,7 @@ RUN rm -rf node_modules packages/**/node_modules
RUN NODE_ENV=production pnpm i

### Clean up ###
RUN rm -rf .scripts pnpm-*.yaml packages/cloud
RUN rm -rf .scripts .parcel-cache pnpm-*.yaml packages/cloud

###### [STAGE] Seal ######
FROM node:20-alpine as app
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Logto[^info] is an Auth0 alternative designed for modern apps and SaaS products.
- Enables OIDC-based authentication with Logto SDKs.
- Supports passwordless sign-in, along with various options like email, phone number, username, Google, Facebook, and other social sign-in methods.
- Offers beautiful UI components with customizable CSS to suit your business needs.
- Has an open community with many warm-hearted contributors and users. Check out our [awesome list](./AWESOME.md) of community-contributed resources.

📦 **Out-of-the-box infrastructure**

Expand All @@ -38,12 +37,12 @@ Logto[^info] is an Auth0 alternative designed for modern apps and SaaS products.
- Implements role-based access control (RBAC) for scalable role authorization, catering to a wide range of use cases.
- Facilitates user management and provides audit logs for understanding identity-related user information and maintaining security.
- Enables single sign-on (SSO) and multi-factor authentication (MFA) without extra coding.
- Leverages Logto organizations to build multi-tenancy apps with ease.
- Leverages Logto Organizations to build multi-tenancy apps with ease.

In a more approachable way, we refer to this solution as "[Customer Identity Access Management (CIAM)](https://en.wikipedia.org/wiki/Customer_identity_access_management)" or simply, the "Customer Identity Solution."

> [!IMPORTANT]
> [Subscribe to us](https://logto.io/subscribe/?utm_source=github&utm_medium=repo_logto) now to stay updated with the latest information about the Logto Cloud (SaaS) and receive feature updates in real-time.
[Subscribe to us](https://logto.io/subscribe/?utm_source=github&utm_medium=repo_logto) now to stay updated with the latest information about the Logto Cloud (SaaS) and receive feature updates in real-time.


## Get started

Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...conventional.rules['type-enum'][2], 'api', 'release']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights', 'elements']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights']],
// Slightly increase the tolerance to allow the appending PR number
...(isCi && { 'header-max-length': [2, 'always', 110] }),
'body-max-line-length': [2, 'always', 110],
Expand Down
7 changes: 0 additions & 7 deletions mygovid-mock-service/src/routes/static/mock-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,6 @@
sub: "7ffe40ff7d558de01c67",
is_public_servant: true,
},
{
user_name: "Flesh Gordon",
govid_email: "[email protected]",
oid: "2gh4zec9143tyc4222u8",
sub: "5yz32gff7d558de0175h",
is_public_servant: true,
},
]
}

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
"@types/pg": "^8.6.6",
"husky": "^9.0.0",
"pg": "^8.8.0",
"tsup": "^8.1.0",
"typescript": "^5.0.0",
"vite": "^5.3.4"
"typescript": "^5.0.0"
},
"engines": {
"node": "^20.9.0",
Expand All @@ -54,5 +52,9 @@
},
"dependencies": {
"@logto/cli": "workspace:^1.1.0"
},
"//": "@see https://parceljs.org/features/dependency-resolution/#package-exports",
"@parcel/resolver-default": {
"packageExports": true
}
}
6 changes: 3 additions & 3 deletions packages/app-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"@silverhand/eslint-config": "6.0.1",
"@silverhand/ts-config": "6.0.0",
"@types/node": "^20.9.5",
"@vitest/coverage-v8": "^2.0.0",
"@vitest/coverage-v8": "^1.4.0",
"eslint": "^8.56.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"typescript": "^5.5.3",
"vitest": "^2.0.0"
"typescript": "^5.3.3",
"vitest": "^1.4.0"
},
"engines": {
"node": "^20.9.0"
Expand Down
48 changes: 0 additions & 48 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,5 @@
# Change Log

## 1.19.0

### Minor Changes

- 2d0502a42: add new cli command to setup proxy for developing and debugging custom ui locally

This command will establish a proxy tunnel between the following 3 entities together: your Logto cloud auth services, your application, and your custom sign-in UI.

Assuming you have a custom sign-in page running on `http://localhost:4000`.
Then you can execute the command this way:

```bash
npm cli proxy --endpoint https://<tenant-id>.logto.app --port 9000 --experience-uri http://localhost:4000
```

Or if you don't have your custom UI pages hosted on a dev server, you can use the `--experience-path` option to specify the path to your static files:
```bash
npm cli proxy --endpoint https://<tenant-id>.logto.app --port 9000 --experience-path /path/to/your/custom/ui
```
This command also works if you have enabled custom domain in your Logto tenant. E.g.:
```bash
npm cli proxy --endpoint https://your-custom-domain.com --port 9000 --experience-path /path/to/your/custom/ui
```
This should set up the proxy and it will be running on your local machine at `http://localhost:9000/`.
Finally, run your application and set its Logto endpoint to the proxy address `http://localhost:9000/` instead.
If all set up correctly, when you click the "sign-in" button in your application, you should be navigated to your custom sign-in page instead of Logto's built-in UI, along with valid session (cookies) that allows you to further interact with Logto experience API.

Happy coding!

### Patch Changes

- Updated dependencies [6477c6dee]
- Updated dependencies [3a839f6d6]
- Updated dependencies [b91ec0cd6]
- Updated dependencies [d203c8d2f]
- Updated dependencies [b188bb161]
- Updated dependencies [62f5e5e0c]
- Updated dependencies [d56bc2f73]
- Updated dependencies [510f681fa]
- @logto/[email protected]
- @logto/[email protected]

## 1.18.0

### Patch Changes
Expand Down
22 changes: 10 additions & 12 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/cli",
"version": "1.19.0",
"version": "1.18.0",
"description": "Logto CLI.",
"author": "Silverhand Inc. <[email protected]>",
"homepage": "https://github.com/logto-io/logto#readme",
Expand Down Expand Up @@ -45,32 +45,30 @@
"@logto/connector-kit": "workspace:^4.0.0",
"@logto/core-kit": "workspace:^2.5.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.13.0",
"@logto/phrases": "workspace:^1.12.0",
"@logto/phrases-experience": "workspace:^1.7.0",
"@logto/schemas": "workspace:1.19.0",
"@logto/schemas": "workspace:1.18.0",
"@logto/shared": "workspace:^3.1.1",
"@silverhand/essentials": "^2.9.1",
"@silverhand/slonik": "31.0.0-beta.2",
"chalk": "^5.3.0",
"chalk": "^5.0.0",
"decamelize": "^6.0.0",
"dotenv": "^16.4.5",
"dotenv": "^16.0.0",
"got": "^14.0.0",
"hpagent": "^1.2.0",
"http-proxy-middleware": "^3.0.0",
"inquirer": "^9.0.0",
"mime": "^4.0.4",
"nanoid": "^5.0.1",
"ora": "^8.0.1",
"p-limit": "^6.0.0",
"p-limit": "^5.0.0",
"p-queue": "^8.0.0",
"p-retry": "^6.0.0",
"pg-protocol": "^1.6.0",
"roarr": "^7.11.0",
"semver": "^7.3.8",
"tar": "^7.0.0",
"typescript": "^5.5.3",
"typescript": "^5.3.3",
"yargs": "^17.6.0",
"zod": "^3.23.8"
"zod": "^3.22.4"
},
"devDependencies": {
"@silverhand/eslint-config": "6.0.1",
Expand All @@ -81,13 +79,13 @@
"@types/sinon": "^17.0.0",
"@types/tar": "^6.1.12",
"@types/yargs": "^17.0.13",
"@vitest/coverage-v8": "^2.0.0",
"@vitest/coverage-v8": "^1.4.0",
"@withtyped/server": "^0.13.6",
"eslint": "^8.56.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"sinon": "^18.0.0",
"vitest": "^2.0.0"
"vitest": "^1.4.0"
},
"eslintConfig": {
"extends": "@silverhand",
Expand Down
Loading

0 comments on commit 1e38843

Please sign in to comment.