-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into metrics-frequency-data
- Loading branch information
Showing
25 changed files
with
913 additions
and
472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
'@capsizecss/vanilla-extract': major | ||
'@capsizecss/metrics': major | ||
'@capsizecss/unpack': major | ||
'@capsizecss/core': major | ||
--- | ||
|
||
Precompile Capsize packages with [Crackle] | ||
|
||
Migrating Capsize packages to be precompiled with [Crackle], with a key change being Crackle now handles entry points instead of [Preconstruct]. | ||
|
||
Other benefits include: | ||
- Modern module entry point syntax using the ["exports" field] with better tooling compatibility. | ||
- Improved types and better ESM and CJS compatibility | ||
- Better alignment between compiled code and module entry points | ||
|
||
### BREAKING CHANGES: | ||
|
||
#### API changes | ||
|
||
While technically a breaking change, consumers of Capsize's public APIs are not affected by this change. | ||
If you are affected due to reaching into package internals, please get in touch and see if we can find a more maintainable approach. | ||
|
||
#### TypeScript | ||
|
||
TypeScript consumers should ensure they are using a compatible [`moduleResolution` strategy in TSConfig] — either `node16`, `nodenext` or `bundler`. This will ensure types are correctly resolved across the different module specifications. | ||
|
||
|
||
[Crackle]: https://github.com/seek-oss/crackle?tab=readme-ov-file#-crackle- | ||
[Preconstruct]: https://preconstruct.tools/ | ||
["exports" field]: https://nodejs.org/api/packages.html#exports | ||
[`moduleResolution` strategy in tsconfig]: https://www.typescriptlang.org/tsconfig#moduleResolution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@capsizecss/vanilla-extract': patch | ||
--- | ||
|
||
Fix ESM compatibility of generated CSS module | ||
|
||
When consumed via ESM, the generated CSS module had a bug which could result in missing Vanilla Extract file scopes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
module.exports = { | ||
presets: [ | ||
'@babel/preset-typescript', | ||
['@babel/preset-env', { targets: { node: 16, browsers: 'since 2017-06' } }], | ||
['@babel/preset-env', { bugfixes: true, targets: { node: 'current' } }], | ||
], | ||
plugins: ['@vanilla-extract/babel-plugin'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# managed by crackle | ||
/dist | ||
# end managed by crackle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# managed by crackle | ||
/dist | ||
/entireMetricsCollection | ||
# end managed by crackle | ||
|
||
# the analyse script dumps outputs in here | ||
output | ||
/*.d.ts | ||
/*.js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import del from 'del'; | ||
import path from 'path'; | ||
|
||
import { metricsDir } from './paths'; | ||
|
||
(async () => { | ||
const folderPath = path.join(__dirname, '..'); | ||
await del([`${folderPath}/*.d.ts`, `${folderPath}/*.js`]); | ||
await del([`${metricsDir}/*.d.ts`, `${metricsDir}/*.js`]); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import path from 'path'; | ||
|
||
export const metricsDir = path.join(__dirname, '..', 'entireMetricsCollection'); |
Oops, something went wrong.