Skip to content

Commit

Permalink
Merge 46ba5c1 into bdc7c34
Browse files Browse the repository at this point in the history
  • Loading branch information
graynorton committed Nov 29, 2022
2 parents bdc7c34 + 46ba5c1 commit bce9554
Show file tree
Hide file tree
Showing 275 changed files with 11,218 additions and 2,459 deletions.
File renamed without changes.
5 changes: 5 additions & 0 deletions .changeset/cyan-moose-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': patch
---

Make @consume decorator work with optional fields
File renamed without changes.
6 changes: 6 additions & 0 deletions .changeset/dull-months-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lit-labs/analyzer': minor
'@lit-labs/gen-manifest': minor
---

Added support for export, slot, cssPart, and cssProperty to analyzer and manifest generator. Also improved JS project analysis performance.
6 changes: 6 additions & 0 deletions .changeset/five-falcons-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lit-labs/analyzer': minor
'@lit-labs/cli': minor
---

Added superclass analysis to ClassDeclaration, along with the ability to query exports of a Module (via `getExport()` and `getResolvedExport()`) and the ability to dereference `Reference`s to the `Declaration` they point to (via `dereference()`). A ClassDeclaration's superClass may be interrogated via `classDeclaration.heritage.superClass.dereference()` (`heritage.superClass` returns a `Reference`, which can be dereferenced to access its superclass's `ClassDeclaration` model.
2 changes: 2 additions & 0 deletions .changeset/fresh-oranges-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/lemon-llamas-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': minor
---

Rename ContextKey to Context
8 changes: 0 additions & 8 deletions .changeset/moody-colts-trade.md

This file was deleted.

2 changes: 2 additions & 0 deletions .changeset/six-buttons-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
5 changes: 5 additions & 0 deletions .changeset/tidy-flowers-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/react': patch
---

Filter \_\_forwaredRef from build.
5 changes: 5 additions & 0 deletions .changeset/unlucky-lamps-sing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': patch
---

Allow ContextProvider to be added lazily and still work with ContextRoot
5 changes: 5 additions & 0 deletions .changeset/unlucky-parents-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lit-labs/context': patch
---

Rename @contextProvided and @contextProvider to @consume and @provide
6 changes: 6 additions & 0 deletions .changeset/wild-pillows-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@lit-labs/cli': minor
'@lit-labs/gen-utils': minor
---

Implemented lit init element command
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ packages/lit-html/async-directive.*
packages/lit-html/polyfill-support.*
packages/lit-html/private-ssr-support.*
packages/lit-html/static.*
packages/lit-html/is-server.*

packages/lit-starter-js/node_modules/*
packages/lit-starter-js/docs/*
Expand Down Expand Up @@ -159,6 +160,9 @@ packages/labs/cli/index.d.ts
packages/labs/cli/index.d.ts.map
packages/labs/cli/test-gen/

packages/labs/cli-localize/lib/
packages/labs/cli-localize/node_modules/

packages/labs/context/development/
packages/labs/context/test/
packages/labs/context/node_modules/
Expand All @@ -174,6 +178,13 @@ packages/labs/eleventy-plugin-lit/test/
# Switches Node into module mode for tests
!packages/labs/eleventy-plugin-lit/test/package.json

packages/labs/gen-manifest/index.js
packages/labs/gen-manifest/index.js.map
packages/labs/gen-manifest/index.d.ts
packages/labs/gen-manifest/index.d.ts.map
packages/labs/gen-manifest/test/
packages/labs/gen-manifest/gen-output/

packages/labs/gen-utils/lib/
packages/labs/gen-utils/test/
packages/labs/gen-utils/index.js
Expand Down Expand Up @@ -306,6 +317,8 @@ packages/labs/virtualizer/test/**/*.d.ts.map
packages/labs/virtualizer/test/**/*.js
packages/labs/virtualizer/test/**/*.js.map
packages/labs/virtualizer/test/screenshot/cases/*/actual.*.png
packages/labs/virtualizer/events.d.ts*
packages/labs/virtualizer/events.js*

packages/labs/vue-utils/development/
packages/labs/vue-utils/test/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/add-issues-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
gh api graphql -f query='
query($organization: String!, $project_number: Int!) {
organization(login: $organization){
projectNext(number: $project_number) {
projectV2(number: $project_number) {
id
}
}
}' -f organization=$ORGANIZATION -F project_number=$PROJECT_NUMBER > project_data.json
echo 'PROJECT_ID='$(jq '.data.organization.projectNext.id' project_data.json) >> $GITHUB_ENV
echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
- name: Add issue to project
env:
Expand All @@ -39,8 +39,8 @@ jobs:
run: |
gh api graphql -f query='
mutation($project_id:ID!, $issue_id:ID!) {
addProjectNextItem(input: {projectId: $project_id, contentId: $issue_id}) {
projectNextItem {
addProjectV2ItemById(input: {projectId: $project_id, contentId: $issue_id}) {
item {
id
}
}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ jobs:

- uses: actions/setup-node@v2
with:
# Pin to avoid version with problematic npm. See https://github.com/npm/cli/issues/4980
# TODO(augustinekim) Unpin when latest node installed by action includes fixed npm
node-version: 16.15.0
node-version: 16
cache: 'npm'
cache-dependency-path: package-lock.json

Expand Down
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ packages/lit-html/async-directive.*
packages/lit-html/polyfill-support.*
packages/lit-html/private-ssr-support.*
packages/lit-html/static.*
packages/lit-html/is-server.*

packages/lit-starter-js/node_modules/
packages/lit-starter-js/**/custom-elements.json
Expand Down Expand Up @@ -145,6 +146,10 @@ packages/labs/cli/index.d.ts
packages/labs/cli/index.d.ts.map
packages/labs/cli/test-gen/

packages/labs/cli/test-goldens/
packages/labs/cli-localize/lib/
packages/labs/cli-localize/node_modules/

packages/labs/context/development/
packages/labs/context/test/
packages/labs/context/node_modules/
Expand All @@ -160,6 +165,13 @@ packages/labs/eleventy-plugin-lit/test/
# Switches Node into module mode for tests
!packages/labs/eleventy-plugin-lit/test/package.json

packages/labs/gen-manifest/index.js
packages/labs/gen-manifest/index.js.map
packages/labs/gen-manifest/index.d.ts
packages/labs/gen-manifest/index.d.ts.map
packages/labs/gen-manifest/test/
packages/labs/gen-manifest/gen-output/

packages/labs/gen-utils/lib/
packages/labs/gen-utils/test/
packages/labs/gen-utils/index.js
Expand Down Expand Up @@ -289,6 +301,8 @@ packages/labs/virtualizer/test/**/*.d.ts.map
packages/labs/virtualizer/test/**/*.js
packages/labs/virtualizer/test/**/*.js.map
packages/labs/virtualizer/test/screenshot/cases/*/actual.*.png
packages/labs/virtualizer/events.d.ts*
packages/labs/virtualizer/events.js*

packages/labs/vue-utils/development/
packages/labs/vue-utils/test/
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<div align="center">
<img src="./packages/lit/logo.svg" alt="Lit" width="300" height="141">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./packages/lit/logo-dark.svg" alt="Lit" width="300" height="141">
</source>
<source media="(prefers-color-scheme: light)" srcset="./packages/lit/logo.svg" alt="Lit" width="300" height="141">
</source>
<img src="./packages/lit/logo.svg" alt="Lit" width="300" height="141">
</picture>

### Simple. Fast. Web Components.

[![Build Status](https://github.com/lit/lit/actions/workflows/tests.yml/badge.svg)](https://github.com/lit/lit/actions/workflows/tests.yml)
[![Published on npm](https://img.shields.io/npm/v/lit.svg?logo=npm)](https://www.npmjs.com/package/lit)
[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-4a154b.svg?logo=slack)](https://lit.dev/slack-invite/)
[![Join our Discord](https://img.shields.io/badge/discord-join%20chat-5865F2.svg?logo=discord&logoColor=fff)](https://lit.dev/discord/)
[![Mentioned in Awesome Lit](https://awesome.re/mentioned-badge.svg)](https://github.com/web-padawan/awesome-lit)

</div>
Expand Down
20 changes: 20 additions & 0 deletions lit-next.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@
"name": "cli",
"path": "packages/labs/cli"
},
{
"name": "gen-manifest",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-react",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-angular",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-vue",
"path": "packages/labs/gen-manifest"
},
{
"name": "gen-utils",
"path": "packages/labs/gen-manifest"
},
{
"name": "lit-monorepo",
"path": "."
Expand Down

0 comments on commit bce9554

Please sign in to comment.