unframer 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/framer.js +1 -1
- package/dist/framer.js.map +1 -1
- package/esm/framer.js +1 -1
- package/esm/framer.js.map +1 -1
- package/package.json +1 -1
- package/src/framer.js +1 -1
package/README.md
CHANGED
|
@@ -176,6 +176,12 @@ You can change the breakpoints by passing an object in your `unframer.config.jso
|
|
|
176
176
|
|
|
177
177
|
- Internationalization is not supported
|
|
178
178
|
|
|
179
|
+
## Future Compatibility
|
|
180
|
+
|
|
181
|
+
Every Framer runtime change is upstreamed automatically via Github Actions to this [file](unframer/src/framer.js) and an example app is deployed [here](https://unframer-nextjs-app.vercel.app/). This means that if something breaks it's easy to bisect the specific change and fix it.
|
|
182
|
+
|
|
183
|
+
For example in May 2024 Framer upgraded to React 19 and unframer broke, the reason was that framer runtime no longer injected ssr styles to `head` because react should do it automatically from version 19, this however broke unframer when using react 18, but i was able to quickly fix it by adding back the code to inject styles to `head` in unframer.
|
|
184
|
+
|
|
179
185
|
## Example
|
|
180
186
|
|
|
181
187
|
Look at the [nextjs-app](./nextjs-app) folder for an example and the deployed example [here](https://unframer-nextjs-app.vercel.app/)
|
package/dist/framer.js
CHANGED
|
@@ -38206,7 +38206,7 @@ react-is/cjs/react-is.production.min.js:
|
|
|
38206
38206
|
*)
|
|
38207
38207
|
*/
|
|
38208
38208
|
if (typeof document !== 'undefined') {
|
|
38209
|
-
for (const node of document.querySelectorAll('style[data-framer-css-ssr]')) {
|
|
38209
|
+
for (const node of document.querySelectorAll('body style[data-framer-css-ssr]')) {
|
|
38210
38210
|
document.head.appendChild(node);
|
|
38211
38211
|
}
|
|
38212
38212
|
}
|