utopia 3.0.6 → 3.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29332f03b21ff72e75b4f372deb3b317469ff3a5f2991ad363214b144d68ee4d
4
- data.tar.gz: 3e3405b9bc409eeaf96e575bbb4f61fceb16298630b63f6069c2f443c2264025
3
+ metadata.gz: dad6b7c394da35c51fd5041dd39f5caae69b81b2f847777ceee2f4685f7190ec
4
+ data.tar.gz: 0243d583b140c45fa0d954ce7579d6538872cf77b744909039bba4bb6a91b462
5
5
  SHA512:
6
- metadata.gz: 4f376ca1d057b6a91002e1abcab1ef98c0754772203c8d44392eca14e41df72b59e79bdb37a81e29624a6e0dd696e71ae63623a3ede9afec76b400825a8063fd
7
- data.tar.gz: 4c20f0613d97496fd0fe1c4584384a1022677378b84504173817cdb6f6eb1a5405c440319ee482222e7c1fe7c8eea9401e1f7df89871607be8eeb023c9bf6487
6
+ metadata.gz: d448efb2345156f1bf0a748418b7f4fafac043c0ec23abafc17e415ae3b3fc2d5828f87c1317955c1cabfc07516b9390273e8963b20fd50fa39073e6ab283155
7
+ data.tar.gz: 6a1085fcdd2286734d12c915d7459d738a26b0ba7ae3470573a7e9356977dfc8439a8d3d368b8aaf4b137eda3401035fd71ad20f6c238b15f530b886e05ad734
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2017-2025, by Samuel Williams.
4
+ # Copyright, 2017-2026, by Samuel Williams.
5
5
 
6
6
  def initialize(...)
7
7
  super
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2017-2025, by Samuel Williams.
4
+ # Copyright, 2017-2026, by Samuel Williams.
5
5
 
6
6
  # Generate a static copy of the application.
7
7
  # @parameter output_path [String] The output path for the generated site.
data/bake/utopia.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2017-2025, by Samuel Williams.
4
+ # Copyright, 2017-2026, by Samuel Williams.
5
5
 
6
6
  def environment(name: nil)
7
7
  if name
data/context/index.yaml CHANGED
@@ -3,6 +3,8 @@
3
3
  ---
4
4
  description: Utopia is a framework for building dynamic content-driven websites.
5
5
  metadata:
6
+ bug_tracker_uri: https://github.com/socketry/utopia/issues
7
+ changelog_uri: https://github.com/socketry/utopia/blob/main/releases.md
6
8
  documentation_uri: https://socketry.github.io/utopia/
7
9
  funding_uri: https://github.com/sponsors/ioquatix/
8
10
  source_code_uri: https://github.com/socketry/utopia.git
@@ -8,7 +8,7 @@ Import maps provide a modern way to manage JavaScript module dependencies. Utopi
8
8
 
9
9
  ### Installing JavaScript Libraries
10
10
 
11
- Declare browser libraries as production dependencies in `package.json`. The `bake-node.packages` section selects the files that should be served and assigns their browser import names:
11
+ Declare browser libraries as production dependencies in `package.json`. The `web-packages.packages` section selects the files that should be served and assigns their browser import names:
12
12
 
13
13
  ```json
14
14
  {
@@ -16,7 +16,7 @@ Declare browser libraries as production dependencies in `package.json`. The `bak
16
16
  "dependencies": {
17
17
  "@socketry/syntax": "^0.6.1"
18
18
  },
19
- "bake-node": {
19
+ "web-packages": {
20
20
  "packages": {
21
21
  "@socketry/syntax": {
22
22
  "include": [
@@ -34,8 +34,8 @@ Declare browser libraries as production dependencies in `package.json`. The `bak
34
34
  Install the dependencies using the configured package manager, then generate the browser-facing package projection:
35
35
 
36
36
  ```bash
37
- $ bundle exec bake node:install
38
- $ bundle exec bake node:packages:static
37
+ $ bundle exec bake web:packages:install
38
+ $ bundle exec bake web:packages:update
39
39
  ```
40
40
 
41
41
  This installs dependencies into `node_modules/` and copies only the selected browser files into `public/_components/`. Treat both directories as generated projections rather than authored source.
@@ -43,8 +43,8 @@ This installs dependencies into `node_modules/` and copies only the selected bro
43
43
  Use an immutable installation and verify the checked-in projection in CI:
44
44
 
45
45
  ```bash
46
- $ bundle exec bake node:install frozen=true
47
- $ bundle exec bake node:packages:check
46
+ $ bundle exec bake web:packages:install frozen=true
47
+ $ bundle exec bake web:packages:check
48
48
  ```
49
49
 
50
50
  ### Creating the Import Map
@@ -96,9 +96,9 @@ Once the import map is set up, you can import and use the library in your script
96
96
  </script>
97
97
  ```
98
98
 
99
- Inspect the generated import map with `bundle exec bake node:importmap:show` when debugging package resolution.
99
+ Inspect the generated import map with `bundle exec bake web:packages:import_map:show` when debugging package resolution.
100
100
 
101
- See the [Bake Node documentation](https://socketry.github.io/bake-node/) for workspace packages, package selection, and alternative package managers.
101
+ See the [Web Packages documentation](https://socketry.github.io/web-packages/) for workspace packages, package selection, and alternative package managers.
102
102
 
103
103
  ### Advanced Import Map Features
104
104
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2025, by Samuel Williams.
4
+ # Copyright, 2025-2026, by Samuel Williams.
5
5
 
6
6
  require "xrb/builder"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2015-2025, by Samuel Williams.
4
+ # Copyright, 2015-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "links"
7
7
  require_relative "response"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
  # Copyright, 2017, by Huba Nagy.
6
6
  # Copyright, 2020, by Michael Adams.
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2010-2025, by Samuel Williams.
4
+ # Copyright, 2010-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "../response"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "content/middleware"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2014-2025, by Samuel Williams.
4
+ # Copyright, 2014-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "../http"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2014-2025, by Samuel Williams.
4
+ # Copyright, 2014-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "../http"
7
7
  require_relative "../path"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2016-2025, by Samuel Williams.
4
+ # Copyright, 2016-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "../http"
7
7
  require_relative "../response"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2025, by Samuel Williams.
4
+ # Copyright, 2020-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "middleware"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2026, by Samuel Williams.
4
+ # Copyright, 2016-2026, by Samuel Williams.
5
5
 
6
6
  module Utopia
7
7
  module Controller
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2014-2025, by Samuel Williams.
4
+ # Copyright, 2014-2026, by Samuel Williams.
5
5
 
6
6
  module Utopia
7
7
  module Controller
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "controller/middleware"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
 
6
6
  module Utopia
7
7
  # @namespace
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2010-2025, by Samuel Williams.
4
+ # Copyright, 2010-2026, by Samuel Williams.
5
5
 
6
6
  require "date"
7
7
 
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2025, by Samuel Williams.
4
+ # Copyright, 2025-2026, by Samuel Williams.
5
5
 
6
6
  require "json"
7
7
  require "xrb"
8
8
  require "protocol/url"
9
- require "bake/node/manifest"
9
+ require "web/packages/manifest"
10
10
 
11
11
  module Utopia
12
12
  # Represents an import map for JavaScript modules with support for URI and relative path resolution.
@@ -56,11 +56,11 @@ module Utopia
56
56
  #
57
57
  # puts page_map.to_html
58
58
  class ImportMap
59
- # Load the import mappings from a Bake Node static package manifest.
59
+ # Load the import mappings from a Web Packages static projection manifest.
60
60
  # @parameter root [String | Pathname] The static package output directory.
61
61
  # @returns [ImportMap] A frozen import map using the manifest's public base URL.
62
62
  def self.load_manifest(root)
63
- manifest = Bake::Node::Manifest.load(root)
63
+ manifest = Web::Packages::Manifest.load(root)
64
64
  base = Protocol::URL[manifest.data.fetch("base")]
65
65
  imports = manifest.import_map.fetch("imports").transform_values do |value|
66
66
  Protocol::URL[value].relative_to(base).to_s
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2026, by Samuel Williams.
4
+ # Copyright, 2015-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "../response"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "localization/preferences"
7
7
  require_relative "localization/locales"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2015-2025, by Samuel Williams.
4
+ # Copyright, 2015-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "../path"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2025, by Samuel Williams.
4
+ # Copyright, 2019-2026, by Samuel Williams.
5
5
 
6
6
  require "msgpack"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2014-2025, by Samuel Williams.
4
+ # Copyright, 2014-2026, by Samuel Williams.
5
5
  # Copyright, 2019, by Huba Nagy.
6
6
 
7
7
  require_relative "session/middleware"
data/lib/utopia/shell.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2025, by Samuel Williams.
4
+ # Copyright, 2020-2026, by Samuel Williams.
5
5
 
6
6
  require "protocol/http/request"
7
7
  require_relative "application"
data/lib/utopia/static.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "static/middleware"
7
7
 
@@ -5,5 +5,5 @@
5
5
 
6
6
  # @namespace
7
7
  module Utopia
8
- VERSION = "3.0.6"
8
+ VERSION = "3.0.7"
9
9
  end
data/lib/utopia.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2009-2025, by Samuel Williams.
4
+ # Copyright, 2009-2026, by Samuel Williams.
5
5
 
6
6
  require_relative "utopia/version"
7
7
 
data/readme.md CHANGED
@@ -31,6 +31,10 @@ Please see the [project documentation](https://socketry.github.io/utopia/) for m
31
31
 
32
32
  Please see the [project releases](https://socketry.github.io/utopia/releases/index) for all releases.
33
33
 
34
+ ### v3.0.7
35
+
36
+ - [Web Packages](https://socketry.github.io/utopia/releases/index#web-packages)
37
+
34
38
  ### v3.0.6
35
39
 
36
40
  - [JavaScript Packages](https://socketry.github.io/utopia/releases/index#javascript-packages)
@@ -94,26 +98,26 @@ The 3.0.x series is considered a development release while the protocol HTTP app
94
98
 
95
99
  We welcome contributions to this project.
96
100
 
97
- 1. Fork it.
101
+ 1. Fork the repository.
98
102
  2. Create your feature branch (`git checkout -b my-new-feature`).
99
- 3. Commit your changes (`git commit -am 'Add some feature'`).
103
+ 3. Commit your changes (`git commit -am 'Add some feature.'`).
100
104
  4. Push to the branch (`git push origin my-new-feature`).
101
- 5. Create new Pull Request.
105
+ 5. Create a new pull request.
102
106
 
103
107
  ### Running Tests
104
108
 
105
109
  To run the test suite:
106
110
 
107
- ``` shell
108
- bundle exec sus
111
+ ``` bash
112
+ $ bundle exec sus
109
113
  ```
110
114
 
111
115
  ### Making Releases
112
116
 
113
117
  To make a new release:
114
118
 
115
- ``` shell
116
- bundle exec bake gem:release:patch # or minor or major
119
+ ``` bash
120
+ $ bundle exec bake gem:release:patch # or minor or major
117
121
  ```
118
122
 
119
123
  ### Developer Certificate of Origin
data/releases.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Releases
2
2
 
3
+ ## v3.0.7
4
+
5
+ ### Web Packages
6
+
7
+ Utopia now uses `web-packages` v0.2 after the project was renamed from `bake-node`. Applications should use the `web-packages` key in `package.json` and invoke package management through the `web:packages` Bake namespace. The generated `.manifest.json` format remains compatible.
8
+
3
9
  ## v3.0.6
4
10
 
5
11
  ### JavaScript Packages
data/setup/site/bake.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2020-2025, by Samuel Williams.
4
+ # Copyright, 2020-2026, by Samuel Williams.
5
5
 
6
6
  def deploy
7
7
  # This task is typiclly run after the site is updated but before the server is restarted.
@@ -1,5 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Released under the MIT License.
4
+ # Copyright, 2010-2026, by Samuel Williams.
5
+ # Copyright, 2020, by Michael Adams.
6
+
3
7
  require_relative "environment"
4
8
 
5
9
  require "utopia/application"
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2026, by Samuel Williams.
4
+ # Copyright, 2019-2026, by Samuel Williams.
5
5
 
6
6
  require "utopia/application"
7
7
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2016-2025, by Samuel Williams.
4
+ # Copyright, 2016-2026, by Samuel Williams.
5
5
 
6
6
  require "protocol/http/request"
7
7
  require "sus/fixtures/async/http"
data/setup/site/gems.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2012-2025, by Samuel Williams.
4
+ # Copyright, 2012-2026, by Samuel Williams.
5
5
 
6
6
  source "https://rubygems.org"
7
7
 
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- F1��zK��`P����riEJ��fgk��6U}�ڳ�G
1
+ �u��<�W���ݎ��XBD,����'����^��~)�u�9DvYq���N1WZ*��(��Vv�E2�p v"��^2�Έ�"<�I�xܐ4ŏe��f��o�״��h��u�0��yH��%SC.�����㨺QW�Ńj�3�Z�#�Z|K7z��=B �˝�;ܜA-���;������5By����5��$���^h:�;��"q����8�Q�kk��U�*@rsz.개8��=�G�͑D��:��8�|&���[ҏ����.b�ѿ-�(���A���A)ϧwD�'#���@��cn���>��W�(
2
+ ��- ~���c���q�IZ�Q�Ń֘n��}X
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -57,20 +57,6 @@ dependencies:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0.20'
60
- - !ruby/object:Gem::Dependency
61
- name: bake-node
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- type: :runtime
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
60
  - !ruby/object:Gem::Dependency
75
61
  name: concurrent-ruby
76
62
  requirement: !ruby/object:Gem::Requirement
@@ -267,6 +253,20 @@ dependencies:
267
253
  - - "~>"
268
254
  - !ruby/object:Gem::Version
269
255
  version: '0.1'
256
+ - !ruby/object:Gem::Dependency
257
+ name: web-packages
258
+ requirement: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - "~>"
261
+ - !ruby/object:Gem::Version
262
+ version: '0.2'
263
+ type: :runtime
264
+ prerelease: false
265
+ version_requirements: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - "~>"
268
+ - !ruby/object:Gem::Version
269
+ version: '0.2'
270
270
  - !ruby/object:Gem::Dependency
271
271
  name: xrb
272
272
  requirement: !ruby/object:Gem::Requirement
@@ -393,6 +393,8 @@ homepage: https://github.com/socketry/utopia
393
393
  licenses:
394
394
  - MIT
395
395
  metadata:
396
+ bug_tracker_uri: https://github.com/socketry/utopia/issues
397
+ changelog_uri: https://github.com/socketry/utopia/blob/main/releases.md
396
398
  documentation_uri: https://socketry.github.io/utopia/
397
399
  funding_uri: https://github.com/sponsors/ioquatix/
398
400
  source_code_uri: https://github.com/socketry/utopia.git
metadata.gz.sig CHANGED
Binary file