Comparing version 0.6.5 to 1.0.0
120
package.json
{ | ||
"name": "lucia", | ||
"version": "0.6.5", | ||
"description": "3kb library for tiny web apps", | ||
"main": "dist/lucia.umd.js", | ||
"module": "dist/lucia.esm.js", | ||
"browser": "dist/lucia.js", | ||
"types": "dist/lucia.d.ts", | ||
"scripts": { | ||
"dev": "sh scripts/dev.sh", | ||
"build": "sh scripts/build.sh", | ||
"docs": "typedoc src/index.ts", | ||
"lint": "eslint src/**", | ||
"cleanup": "prettier --write src --parser typescript", | ||
"test": "jest --silent --runInBand", | ||
"release": "sh scripts/release.sh", | ||
"prepare": "husky install" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/aidenybai/lucia.git" | ||
}, | ||
"exports": { | ||
"browser": "./dist/lucia.js", | ||
"require": "./dist/lucia.cjs.js", | ||
"import": "./dist/lucia.esm.js" | ||
}, | ||
"sideEffects": false, | ||
"version": "1.0.0", | ||
"description": "A simple and flexible authentication library", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"module": "dist/index.js", | ||
"svelte": "dist/index.js", | ||
"type": "module", | ||
"files": [ | ||
"/dist/", | ||
"CHANGELOG.md" | ||
], | ||
"keywords": [ | ||
"lucia", | ||
"lucia.js", | ||
"tiny", | ||
"javascript", | ||
"library", | ||
"web", | ||
"ui", | ||
"browser" | ||
"lucia-auth", | ||
"authentication", | ||
"auth" | ||
], | ||
"author": "Aiden Bai <hello@aidenybai.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/aidenybai/lucia/issues" | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./middleware": "./dist/middleware/index.js", | ||
"./polyfill/node": "./dist/polyfill/node.js", | ||
"./utils": "./dist/utils/index.js" | ||
}, | ||
"homepage": "https://lucia.js.org", | ||
"engines": { | ||
"node": ">=14.0.0" | ||
"typesVersions": { | ||
"*": { | ||
"middleware": [ | ||
"dist/middleware/index.d.ts" | ||
], | ||
"polyfill/node": [ | ||
"dist/polyfill/node.d.ts" | ||
], | ||
"utils": [ | ||
"dist/utils/index.d.ts" | ||
] | ||
} | ||
}, | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/aidenybai/lucia?sponsor=1" | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pilcrowOnPaper/lucia", | ||
"directory": "packages/lucia" | ||
}, | ||
"author": "pilcrowonpaper", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.0.0", | ||
"@commitlint/config-conventional": "^17.0.0", | ||
"@rollup/plugin-beep": "^0.2.0", | ||
"@rollup/plugin-commonjs": "22.0.0", | ||
"@rollup/plugin-eslint": "^8.0.1", | ||
"@rollup/plugin-node-resolve": "13.3.0", | ||
"@rollup/plugin-strip": "^2.0.0", | ||
"@testing-library/dom": "^8.0.0", | ||
"@types/jest": "^27.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.0.0", | ||
"@typescript-eslint/parser": "^5.0.0", | ||
"eslint": "^8.0.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"husky": "^8.0.1", | ||
"jest": "^27.2.0", | ||
"lint-staged": "^12.0.2", | ||
"million": "^1.0.0", | ||
"prettier": "^2.1.2", | ||
"rollup": "2.75.0", | ||
"rollup-plugin-filesize": "^9.1.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"ts-jest": "^27.0.5", | ||
"ts-node": "^10.2.1", | ||
"tslib": "^2.2.0", | ||
"typedoc": "^0.22.3", | ||
"typescript": "^4.2.4", | ||
"vite": "^2.3.3" | ||
"@sveltejs/kit": "1.10.0", | ||
"@types/express": "^4.17.17", | ||
"@types/node": "^18.6.2", | ||
"prettier": "^2.3.0", | ||
"vitest": "^0.30.1" | ||
}, | ||
"scripts": { | ||
"build": "shx rm -rf ./dist/* && tsc", | ||
"auri.build": "pnpm build", | ||
"test": "vitest run", | ||
"test.debug": "vitest run src/utils/debug.test.ts" | ||
} | ||
} | ||
} |
@@ -1,79 +0,15 @@ | ||
# <a href="https://lucia.js.org"><img src="https://raw.githubusercontent.com/aidenybai/lucia/master/.github/img/logo.svg" height="60" alt="Lucia Logo" aria-label="Lucia Logo" /></a> | ||
# `lucia-auth` | ||
### 3kb library for tiny web apps. | ||
A simple authentication library for managing users and sessions | ||
Sometimes, all you want to do is to try and do something—no boilerplate, bundlers, or complex build processes. Lucia aims to provide an augmentation layer for your logic, allowing you to bind attributes to your HTML to add interactivity without writing any extra JavaScript. | ||
**[Documentation](https://lucia-auth.com)** | ||
[![CI](https://img.shields.io/github/workflow/status/aidenybai/lucia/CI?color=7460E1&labelColor=1D1E32&style=flat-square&label=build)](https://img.shields.io/github/workflow/status/aidenybai/lucia) | ||
![Code Size](https://badgen.net/badgesize/brotli/https/unpkg.com/lucia/dist/lucia.min.js?color=7460E1&labelColor=1D1E32&style=flat-square&label=size) ![NPM Version](https://img.shields.io/npm/v/lucia?color=7460E1&labelColor=1D1E32&style=flat-square) ![Code Coverage](https://img.shields.io/coveralls/github/aidenybai/lucia?color=7460E1&labelColor=1D1E32&style=flat-square) | ||
**[Changelog](https://github.com/pilcrowOnPaper/lucia/blob/main/packages/lucia/CHANGELOG.md)** | ||
[**→ Check out the Lucia Website**](https://lucia.js.org) | ||
## Installation | ||
> Hi! Aiden here, author of Lucia. I hope you find an interesting take on web development and a useful tool for your projects. Lucia is actively looking for new maintainers, please [leave a reply](https://github.com/aidenybai/lucia/discussions/181)! | ||
> | ||
> -Aiden ([@aidenybai](https://github.com/aidenybai)) | ||
## Installing Lucia | ||
Lucia doesn't require build tools by default. Feel free to just drop a [script tag](https://lucia.js.org/docs/fundementals/installation/#cdn) in the head of your webpage. | ||
```html | ||
<!-- Development version: helpful console tips --> | ||
<script src="https://unpkg.com/lucia"></script> | ||
<!-- Production version: no warnings --> | ||
<script src="https://unpkg.com/lucia/dist/lucia.min.js"></script> | ||
```bash | ||
npm install lucia | ||
pnpm add lucia | ||
yarn add lucia | ||
``` | ||
It also integrates well with module bundlers like [Webpack](https://webpack.js.org/) or [Rollup](https://rollupjs.org/); we recommend [specifying the exact build](https://lucia.js.org/docs/fundementals/installation/#npm) if you import Lucia this way. | ||
[**→ Learn more about installing Lucia**](https://lucia.js.org/docs/fundementals/installation) | ||
## Todo App Example | ||
Below is an extremely simple implementation of a todo app using Lucia, utilizing zero JavaScript. Tasks can be added by submitting the form with the input. No, your eyes aren't fooling you—it's really that simple. | ||
```html | ||
<div l-state="{ value: '', todo: [] }"> | ||
<!-- oninput: set `value` to input.value --> | ||
<input l-model="value" /> | ||
<!-- onclick: add the current `value` to the `todo` array --> | ||
<button @click="todo.push(value)">Create</button> | ||
<!-- joins `todo` array together --> | ||
<ul l-for="task in todo"> | ||
<li l-text="this.task"></li> | ||
</ul> | ||
</div> | ||
``` | ||
[**→ View the live Codepen example**](https://codepen.io/aidenybai/pen/JjRrwjN) | ||
## Sponsors | ||
<a href="https://hackclub.com/bank" target="_blank"><img height="60" src="https://cdn.glitch.com/747f5921-6fdc-45db-8eaa-ac12523e0e6c%2Fhackclub-bank.svg?v=1566159701206" alt="Hack Club Bank"></a> | ||
**Want your logo here? [→ Sponsor Lucia](https://bank.hackclub.com/donations/start/lucia)** | ||
## Resources & Contributing Back | ||
Looking for the docs? Check the [Lucia website](https://lucia.js.org) out. | ||
Have a question about Lucia? Post it on the [GitHub Discussions](https://github.com/aidenybai/lucia/discussions) and ask the community for help. | ||
Find a bug? Head over to our [issue tracker](https://github.com/aidenybai/lucia/issues) and we'll do our best to help. We love pull requests, too! | ||
We expect all Lucia contributors to abide by the terms of our [Code of Conduct](https://github.com/aidenybai/lucia/blob/master/.github/CODE_OF_CONDUCT.md). | ||
[**→ Start contributing on GitHub**](https://github.com/aidenybai/lucia/wiki) | ||
## Acknowledgments | ||
Lucia is [MIT-licensed](LICENSE) open-source software by [Aiden Bai](https://github.com/aidenybai) [et al.](https://github.com/aidenybai/lucia/graphs/contributors) | ||
Lucia takes heavy inspiration from [Vue's syntax](https://github.com/vuejs/vue), and believes in the core philosophies and values behind [Alpine.js](https://github.com/alpinejs/alpine), [Dababy](https://github.com/aidenybai/dababy), and [Remake](https://github.com/remake/remake-cli). Feel free to check them out if you interested in an alternative library to use. | ||
_Lucia originates from the Latin word "lux", meaning "light, illuminance"_ | ||
--- | ||
© 2020-2021 Aiden Bai. |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
86994
5
46
1831
Yes
1
16